Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

npm packager installation errors

npm packager installation errors


I ran the command -

sudo curl | sh

But I am getting this Error. Can anyone help?

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
101  7881  101  7881    0     0   5165      0  0:00:01  0:00:01 --:--:--  7696
bsdtar 2.6.2 - libarchive 2.6.2
install [email protected]
cleanup prefix=/usr/local
All clean!
npm ERR! Could not create /usr/local/lib/node_modules/___npm.npm
npm ERR! error installing [email protected] Error: EACCESS, Permission denied '/usr/local/lib/node_modules'
npm ERR! Error: EACCESS, Permission denied '/usr/local/lib/node_modules'
npm ERR! Report this *entire* log at:
npm ERR!     
npm ERR! or email it to:
npm ERR!     
npm ERR! 
npm ERR! System Darwin 10.8.0
npm ERR! command "/usr/local/bin/node" "/private/var/folders/a4/a4oBVIXZEDS3kWEMo4Gh8U+++TI/-Tmp-/npm.4405/package/cli.js" "install" "-gf"
npm ERR! cwd /private/var/folders/a4/a4oBVIXZEDS3kWEMo4Gh8U+++TI/-Tmp-/npm.4405/package
npm ERR! node -v v0.5.11-pre
npm ERR! npm -v 1.0.106
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCESS
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /private/var/folders/a4/a4oBVIXZEDS3kWEMo4Gh8U+++TI/-Tmp-/npm.4405/package/npm-debug.log
npm not ok
It failed
Problem courtesy of: Ashish


Call the command using sudo:

sudo curl | sudo sh
Solution courtesy of: Jatin Ganhotra


View additional discussion.

This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

npm packager installation errors


Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription