Saturday, 15 January 2011

node.js - npm throws error without sudo -


I have just installed the node and npm through the package at nodejs.org and whenever I search for something with NPM Or try to install the following error, unless I order the sudo me it seems that this is a permission issue? I'm already an administrator.

  npm ERR! Error: EACCES, Open '/ Users / Kite / NMP / - / / 'cache.json' NPM ERR! {[Error: EACCES, Open '/ Users' / Bit / NMP / - / '/ cache.json'] NPM ERR! Errno: 3, NPM ERR! Code: 'EACCES', NPM ERR! Path: '/Users/chietala/.npm/-/all/.cache.json'} NMR ERR! NPM ERR! Please try running this command again as root / administrator. NPM ERR! System Darwin 12.2.0 NMP ERR! Command "node" "/ usr / local / bin / npm" "search" "pool" NPM ERR! CWD / User / Chat NPM ERR! Node-v v0.10.4 nmp err! NMP-V 1.2.18 NPM ERR! Path / users / bite / NMP / - / all /.cache.json NMP ERR! Code EACCES NPM ERR! Error 3 NMR ERR! Stack error: EACCES, Open '/ Users / Biteless / NNM / - / /' cache.json 'NPM ERR! NPM ERR! Additional logging details can be found in the following: NPM ERR! / Users / bite / nmm-debug.log NMP ERR! Code is not correct 0  

This looks like a problem with permission in your home directory . . Npm To regain ownership of a directory execution:

  Sudo Chovan- R $ (whoami) ~ / .npm  

No comments:

Post a Comment