paultao 发表于 2015-8-18 12:01
1) Clear NPM's cache:
sudo npm cache clean -f
2) Install a little helper called 'n'
1)npm WARN using --force I sure hope you know what you are doing.
2)npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: n@2.0
.2
npm ERR! notsup Valid OS: !win32
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "n"
npm ERR! cwd C:\Users\Administrator
npm ERR! node -v v0.10.38
npm ERR! npm -v 1.4.28
npm ERR! code EBADPLATFORM
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Administrator\npm-debug.log
npm ERR! not ok code 0