Closed cadorn closed 11 years ago
Try setting the following NPM config options:
npm config set user 0
npm config set unsafe-perm true
and trying again:
sudo npm install -g sm
This will be re-worked soon.
FYI: Workaround worked in above case.
See: #17
I am running into this problem installing sm from the following command "sudo npm install -g sm"
Any help is greatly appreciated!
/usr/local/bin/sm -> /usr/local/lib/node_modules/sm/bin/sm
sh: node: Permission denied npm ERR! sm@0.1.76 postinstall:
node ./scripts/postinstall.js
npm ERR!sh "-c" "node ./scripts/postinstall.js"
failed with 126 npm ERR! npm ERR! Failed at the sm@0.1.76 postinstall script. npm ERR! This is most likely a problem with the sm package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node ./scripts/postinstall.js npm ERR! You can get their info via: npm ERR! npm owner ls sm npm ERR! There is likely additional logging output above.npm ERR! System Linux 2.6.32-41-generic npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "sm" npm ERR! cwd /home/thomas.dvornik/cloud9 npm ERR! node -v v0.7.9 npm ERR! npm -v 1.1.45 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/thomas.dvornik/cloud9/npm-debug.log npm ERR! not ok code 0