~ $ npm install -g yo
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "yo"
npm ERR! node v0.12.5
npm ERR! npm v2.14.0
npm ERR! path /usr/local/lib/node_modules/yo
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! Error: EACCES, rmdir '/usr/local/lib/node_modules/yo'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, rmdir '/usr/local/lib/node_modules/yo']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/yo' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES, rmdir '/usr/local/lib/node_modules/yo'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES, rmdir '/usr/local/lib/node_modules/yo']
npm ERR! error rolling back errno: -13,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/yo' }
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Jagadeesh/npm-debug.log
Instead run the command as npm install -g yo. The error you are getting says:
"npm ERR! Please try running this command again as root/Administrator."
You will need to run as root to install this.
Related
I try to install a Firebase in npm but It's not works well.
I only copy and paste $ npm install -g firebase-tools.
After I got this message
npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "firebase-tools"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! path ../lib/node_modules/firebase-tools/bin/firebase
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall symlink
npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/firebase-tools/bin/firebase' -> '/usr/local/bin/firebase'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, symlink '../lib/node_modules/firebase-tools/bin/firebase' -> '/usr/local/bin/firebase'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'symlink',
npm ERR! path: '../lib/node_modules/firebase-tools/bin/firebase',
npm ERR! dest: '/usr/local/bin/firebase' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/hansangjun/npm-debug.log
npm ERR! code 1
You are running it as normal user. Run the same with following command
sudo npm install -g firebase-tools
I am having many npm errors in the terminal while installing Apache cordova in my mac. I have also tried sudo npm install -g cordova but it's the same and Cordova is not installed while using Cordova --version
npm ERR! Darwin 14.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova"
npm ERR! node v4.3.0
npm ERR! npm v2.14.12
npm ERR! path /Users/macmini/.node/bin/cordova
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall unlink
npm ERR! Error: EACCES: permission denied, unlink '/Users/macmini/.node/bin/cordova'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, unlink '/Users/macmini/.node/bin/cordova']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'unlink',
npm ERR! path: '/Users/macmini/.node/bin/cordova' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES: permission denied, unlink '/Users/macmini/.node/bin/cordova'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES: permission denied, unlink '/Users/macmini/.node/bin/cordova']
npm ERR! error rolling back errno: -13,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back syscall: 'unlink',
npm ERR! error rolling back path: '/Users/macmini/.node/bin/cordova' }
npm ERR! Please include the following file with any support request:
npm ERR! /Users/macmini/npm-debug.log
Joeris-MacBook-Pro:~ Joericblom$ npm install -g coffee-script
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "coffee-script"
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! path /usr/local/bin/coffee
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall unlink
npm ERR! Error: EACCES: permission denied, unlink '/usr/local/bin/coffee'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, unlink '/usr/local/bin/coffee']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'unlink',
npm ERR! path: '/usr/local/bin/coffee' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES: permission denied, unlink '/usr/local/bin/coffee'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES: permission denied, unlink '/usr/local/bin/coffee']
npm ERR! error rolling back errno: -13,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back syscall: 'unlink',
npm ERR! error rolling back path: '/usr/local/bin/coffee' }
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Joericblom/npm-debug.log
Joeris-MacBook-Pro:~ Joericblom$
Can somebody help me with this?
The error says: Error: EACCES: permission denied.
You'll need admin rights to install globally, so you need to prepend your command with sudo.
Like this: sudo npm install -g coffee-script
I am trying to install csslint with npm:
npm install -g csslint
and I get this error:
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "node" "/usr/bin/npm" "install" "csslint"
npm ERR! node v0.12.7
npm ERR! npm v2.14.1
npm ERR! path ../csslint/cli.js
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! Error: EACCES, symlink '../csslint/cli.js'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, symlink '../csslint/cli.js'] errno: -13, code: 'EACCES', path: '../csslint/cli.js' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
and when I try with sudo Nothing happens and I do not get any message. (also when I just type sudo npm I see nothing happens.)
I am running into an issue when I try to run "npm install -g express" and "npm install -g express-generator". Here is the error message for both. I have been able to install Express in the past by using package.json, but not through npm. Any ideas? :
"npm install -g express":
npm http GET https://registry.npmjs.org/express
npm http 304 https://registry.npmjs.org/express
npm ERR! error rolling back Error: EACCES, unlink '/usr/local/lib/node_modules/express'
npm ERR! error rolling back express#4.3.1 { [Error: EACCES, unlink '/usr/local/lib/node_modules/express']
npm ERR! error rolling back errno: 3,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/express' }
npm ERR! Error: EACCES, unlink '/usr/local/lib/node_modules/express'
npm ERR! { [Error: EACCES, unlink '/usr/local/lib/node_modules/express']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/express' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "express"
npm ERR! cwd /Users/user/Desktop/Projects/node
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path /usr/local/lib/node_modules/express
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/usr/local/lib/node_modules/express'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/user/Desktop/Projects/node/npm-debug.log
npm ERR! not ok code 0
"npm install -g express-generator":
npm http GET https://registry.npmjs.org/express-generator
npm http 200 https://registry.npmjs.org/express-generator
npm http GET https://registry.npmjs.org/express-generator/-/express-generator-4.2.0.tgz
npm http 200 https://registry.npmjs.org/express-generator/-/express-generator-4.2.0.tgz
npm ERR! error rolling back Error: EACCES, unlink '/usr/local/lib/node_modules/express-generator'
npm ERR! error rolling back express-generator#4.2.0 { [Error: EACCES, unlink '/usr/local/lib/node_modules/express-generator']
npm ERR! error rolling back errno: 3,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/express-generator' }
npm ERR! Error: EACCES, unlink '/usr/local/lib/node_modules/express-generator'
npm ERR! { [Error: EACCES, unlink '/usr/local/lib/node_modules/express-generator']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/express-generator' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "express-generator"
npm ERR! cwd /Users/user/Desktop/Projects/node
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path /usr/local/lib/node_modules/express-generator
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/usr/local/lib/node_modules/express-generator'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/user/Desktop/Projects/node/npm-debug.log
npm ERR! not ok code 0
Did you try with sudo? It looks like the current user does not have access to /usr/local/lib.
By the way, you want to install express-generator globally for the project generator nowadays, not the express package globally anymore.
this is permission issue..
if you use without sudo, using this commandline..
sudo chown -R `whoami` ~/.npm
npm throws error without sudo
this link is best answer to you.
Run cmd as Administrator and try installing it again. It worked for me.
I had same problem.
I had command "npm cache clean" -> not work
ulimit -n 2560 -> not work
so I
delete .npm directory and run this command "npm search -g"
and removed some module -> in my case grunt*
that works for me.