Sunday, 15 April 2012

node.js - npm error-npm not found in terminal -



node.js - npm error-npm not found in terminal -

please help me clear error

apples-mac-mini:bin apple$ curl -l http://npmjs.org/install.sh | sh % total % received % xferd average speed time time time current dload upload total spent left speed 100 193 100 193 0 0 244 0 --:--:-- --:--:-- --:--:-- 471 100 6711 100 6711 0 0 431 0 0:00:15 0:00:15 --:--:-- 5456 sh: line 20: npm-install-3294.sh: permission denied sh: npm-install-3294.sh: no such file or directory rm: npm-install-3294.sh: no such file or directory

curl -l http://npmjs.org/install.sh | sudo sh

note sudo in front. errors due installer trying re-create files scheme folders, requiring administrative permissions.

also, not need install npm, included in latest node.js versions. install node.js on macos, refer their official site.

node.js

No comments:

Post a Comment