cannot create express app

I am using Mac OS X 10.7.5 and when I try to create an Express app with LESS, I get the following error, any help will be appreciated. WebStorm Version - 6.0.1

Error creating Node.js Express App. Exit code of '/usr/local/bin/node /usr/local/bin/npm install express@3.2.4' is 3.
npm ERR! Error: EACCES, open '/Users/user001/.npm/9e0aca13-express-3-2-4.lock'
npm ERR!  { [Error: EACCES, open '/Users/user001/.npm/9e0aca13-express-3-2-4.lock']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/Users/user001/.npm/9e0aca13-express-3-2-4.lock' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 11.4.2
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "express@3.2.4"
npm ERR! cwd /Users/user001/Documents/WebstormProjects/test
npm ERR! node -v v0.8.16
npm ERR! npm -v 1.1.69
npm ERR! path /Users/user001/.npm/9e0aca13-express-3-2-4.lock
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/user001/.npm/9e0aca13-express-3-2-4.lock'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/user001/Documents/WebstormProjects/test/npm-debug.log
npm ERR! not ok code 0

Comment actions Permalink

Can anybody comment please? Thanks!

Comment actions Permalink


this is a permissions issue - looks like only root can write to /Users/user001/.npm
Please, check if your user has the right privileges in ~/.npm

Best regards,


Please sign in to leave a comment.