spmjs / spm2

源码已合并到
https://github.com/spmjs/spm/tree/2.x
Other
126 stars 26 forks source link

failed installing spm #109

Closed zxdong262 closed 10 years ago

zxdong262 commented 10 years ago

@ubuntu 12.04 x64

  sudo npm install spm -g
npm ERR! spm@2.2.4 preinstall: `node scripts/preinstall.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the spm@2.2.4 preinstall script.
npm ERR! This is most likely a problem with the spm package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/preinstall.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls spm
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.8.0-34-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "spm" "-g"
npm ERR! cwd /home/zxd-qida/dev/seajs_eg
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/zxd-qida/dev/seajs_eg/npm-debug.log
npm ERR! not ok code 0
popomore commented 10 years ago

不要用 sudo

https://github.com/spmjs/spm2/blob/master/scripts/preinstall.js

popomore commented 10 years ago

http://docs.spmjs.org/doc/environment.html