npm won’t install from package.json within project

On my macbook air I can only install npm packages globally using sudo but anytime I go into a local directory and try to install a local package without the -g it gives me errors.

 npm ERR! Error: EACCES, open '/Users/mmarze/.npm/53951495-coffee-script.lock'
npm ERR!  { [Error: EACCES, open '/Users/mmarze/.npm/53951495-coffee-script.lock']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/Users/mmarze/.npm/53951495-coffee-script.lock' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 12.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "coffee-script"
npm ERR! cwd /Users/mmarze/sandbox/node.js/test
npm ERR! node -v v0.8.9
npm ERR! npm -v 1.1.61
npm ERR! path /Users/mmarze/.npm/53951495-coffee-script.lock
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/mmarze/.npm/53951495-coffee-script.lock'
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/mmarze/sandbox/node.js/test/npm-debug.log
npm ERR! not ok code 0

I tried uninstalling and reinstalling node and npm and I can’t get it to install anything locally, and if I use sudo to install locally then my local user doesn’t have write access to them. How can I fix this?

`npm install` installs all dependencies of my project over the network, even if they are already installed or available from cache

whenever I run npm install in my project directory, npm fetches and installs all dependencies even if they’re already installed in node_modules. Npm does not install from my cache in ~/.npm/, even tho

Install npm module from gitlab private repository

We are using GitLab for our private project. There are some forked libraries from github, that we want to install as npm module. Installing that module directly from npm is ok and for example this: np

install npm module in my project

I have node.js project on drive F. for example F:/development/WebStormProjects/test-app/ so, how i can install nmp module (npm install twitter-bootstrap-node) in that project folder? my os is windo

download source from npm without npm install xxx

Could be download the source code a application from ( without using the npm install xxx? This is because I need a package that is not in github but got an error when installed with npm instal

npm install returning error

I’m trying to install a project from GitHub and followed the installation instructions. When I run npm install in the project directory it’s returning the error results below: [email protected]:/var/www/nom

How to install npm package from nodejs script?

How to install npm package from nodejs script? Question is not about simple installation npm packages via terminal, it is about installation via nodejs script: Not about this: npm install express, but

npm install from GitHub in specific environment

My team uses a private npm registry. We install packages from this private registry when developing locally and when deploying to production. When deploying to staging, however, we’d like to pull from

nodejs npm unable to install from github URL

Trying to install modules from github results in ENOENT error on package.json. Easily reproduced using express npm install throw error. npm install express wor

Issue with “npm install” after setting up AngularJS project with Yeoman

My issue appears after (or even during) the creation of the angular project with the command: yo angular during the process of installing all the devDependencies from the package.json (npm install

npm install error from the terminal

I am trying to install node in my mac.. i am getting the following error… i downloaded the node from node site and ran that package… can you guys tell me why i am facing that errror..when i do npm


Based on the comment from Linus G Thiel it looks like this fixes the issue:

Looks like you may have done a sudo npm install … without -g, i.e. installed npm packages in your home as the root user. Either clear your .npm directory or chown -R mmarze.mmarze ~/.npm should fix it.