I've just updated to Yosemite 10.10.3 and tried to install Bower and Grunt, both when installing give me errors. I did overpass this error by using sudo before the install command but as soon as checking the version this is what the return message is: -bash: bower: command not found after a search did an echo $PATH that resulted as: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Is there a solution to this? I've been looking around the web trying everything the i could find but haven't found a work around it. Thanks in advance for your help.
Bower Error:
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! path /Users/albertoc/.node/bin/bower
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! Error: EACCES, unlink '/Users/albertoc/.node/bin/bower'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, unlink '/Users/albertoc/.node/bin/bower']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/albertoc/.node/bin/bower' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES, unlink '/Users/albertoc/.node/bin/bower'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES, unlink '/Users/albertoc/.node/bin/bower']
npm ERR! error rolling back errno: -13,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/Users/albertoc/.node/bin/bower' }
npm ERR! Please include the following file with any support request:
npm ERR! /Users/albertoc/npm-debug.log
Grunt Error:
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "grunt-cli"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! path /Users/albertoc/.node/bin/grunt
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! Error: EACCES, unlink '/Users/albertoc/.node/bin/grunt'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, unlink '/Users/albertoc/.node/bin/grunt']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/albertoc/.node/bin/grunt' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES, unlink '/Users/albertoc/.node/bin/grunt'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES, unlink '/Users/albertoc/.node/bin/grunt']
npm ERR! error rolling back errno: -13,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/Users/albertoc/.node/bin/grunt' }
npm ERR! Please include the following file with any support request:
npm ERR! /Users/albertoc/npm-debug.log
I had the same issue, updating to node v0.12.3 with the pkg installer from https://nodejs.org/download/ and running the command with sudo fixed it for me.
Hope it helps.
Cheers
Related
npm ERR! code EPERM
npm ERR! syscall open
npm ERR! path C:\Users\CypressAutomation\package.json
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, open 'C:\Users\CypressAutomation\package.json'
npm ERR! [Error: EPERM: operation not permitted, open 'C:\Users\CypressAutomation\package.json'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'C:\Users\CypressAutomation\package.json'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2022-11-29T05_56_09_860Z-debug-0.log
npm ERR! code EPERM
npm ERR! syscall open
npm ERR! path C:\Users\CypressAutomation\package.json
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, open 'C:\Users\CypressAutomation\package.json'
npm ERR! [Error: EPERM: operation not permitted, open 'C:\Users\CypressAutomation\package.json'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'C:\Users\CypressAutomation\package.json'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2022-11-29T05_56_09_860Z-debug-0.log
I'm unable to npm install -D webpack. I get the following error message:
npm ERR! path C:\Users\Yevgeny Kozlov\Desktop\cpay-ext\node_modules\fsevents\nod
e_modules\abbrev\package.json
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\Yevgeny Kozlov\
Desktop\cpay-ext\node_modules\fsevents\node_modules\abbrev\package.json'
npm ERR! { Error: EPERM: operation not permitted, unlink 'C:\Users\Yevgeny Kozl
ov\Desktop\cpay-ext\node_modules\fsevents\node_modules\abbrev\package.json'
npm ERR! stack: 'Error: EPERM: operation not permitted, unlink \'C:\\Users\\Ye
vgeny Kozlov\\Desktop\\cpay-ext\\node_modules\\fsevents\\node_modules\\abbrev\\p
ackage.json\'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'C:\\Users\\Yevgeny Kozlov\\Desktop\\cpay-ext\\node_modules\\fs
events\\node_modules\\abbrev\\package.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Yevgeny Kozlov\AppData\Roaming\npm-cache\_logs\2017-12-31T
21_12_18_374Z-debug.log
It used to work normally. I would appreciate your help on what's going on with this machine.
I've removed
C:\Users\Yevgeny Kozlov\AppData\Roaming\npm-cache\
C:\Users\Yevgeny Kozlov\AppData\Roaming\npm\
folders and it has helped.
I've been working on this for a while and it's the simplest thing....I NEED to simply install express so I can move on and actually work. No matter what I do I get this same error and Express won't install:
~ npm install -g express
npm WARN checkPermissions Missing write access to /Users/revjtanton/.nvm/versions/node/v0.12.2/lib/node_modules/express
/Users/revjtanton/.nvm/versions/node/v0.12.2/lib
└── express#4.14.0
npm ERR! Darwin 15.6.0
npm ERR! argv "node" "/Users/revjtanton/.nvm/versions/node/v0.12.2/bin/npm" "install" "-g" "express"
npm ERR! node v0.12.2
npm ERR! npm v3.9.3
npm ERR! path /Users/revjtanton/.nvm/versions/node/v0.12.2/lib/node_modules/express
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! Error: EACCES, access '/Users/revjtanton/.nvm/versions/node/v0.12.2/lib/node_modules/express'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, access '/Users/revjtanton/.nvm/versions/node/v0.12.2/lib/node_modules/express']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/revjtanton/.nvm/versions/node/v0.12.2/lib/node_modules/express' }
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/revjtanton/npm-debug.log
I've managed permissions, cleaned caches, tried installing with sudo (which doesn't produce an error...but I'm still not able to use express).
Execute the command with sudo:
sudo npm install -g express
Hi i'm trying to install cordova with npm with
sudo npm install -g cordova
And i have this error
npm ERR! Error: EACCES, symlink '../lib/node_modules/cordova/bin/cordova'
npm ERR! { [Error: EACCES, symlink '../lib/node_modules/cordova/bin/cordova']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '../lib/node_modules/cordova/bin/cordova' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 11.4.2
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "cordova"
npm ERR! cwd /Users/yannickghilardi
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.11
npm ERR! path ../lib/node_modules/cordova/bin/cordova
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, symlink '../lib/node_modules/cordova/bin/cordova'
npm ERR! Error: EACCES, open 'npm-debug.log'
npm ERR! { [Error: EACCES, open 'npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 11.4.2
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "cordova"
npm ERR! cwd /Users/yannickghilardi
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.11
npm ERR! path npm-debug.log
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open 'npm-debug.log'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/yannickghilardi/npm-debug.log
npm ERR! not ok code 0
Then i tried to use this command
sudo chown -R yannickghilardi /usr/local/lib/node_modules
And i have this error message
Operation not permitted
Is there a solution to this problem?
Thanks in advance
Just now i solved this issue. Execute this command by going into to the root folder.
Destination folder -- > /usr/local/lib/node_modules/ and type the command sudo npm install -g cordova
I tried installing using the command npm i -g cordova-res --unsafe-perm. It worked fine.
I am using docpad run after following the installation instructions I was able to create a succesful result with docpad init, but when i Use run I get the following errors, and when i run docpad update as suggested i get another error.
I installed node with nvm and I thought npm comes with the install of node
git clone git://github.com/creationix/nvm.git ~/.nvm
printf "\n\n# NVM\nif [ -s ~/.nvm/nvm.sh ]; then\n\tNVM_DIR=~/.nvm\n\tsource ~/.nvm/nvm.sh\nfi" >> ~/.bashrc
NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
nvm install v0.10.15
nvm alias default 0.10
nvm use 0.10
run error
warning: Your project's local DocPad version is 6.48.0 instead of 6.48.1, you may experience problems. Run `docpad update` to fix this.
info: DocPad listening to http://localhost:9778/ on directory /Users/anderskitson/sites/techbasics/out
info: LiveReload listening to new socket on channel /docpad-livereload
info: Generating...
warning: Something went wrong while rendering: styles/style.css.scss
error: Something went wrong with the action
error: An error occured:
Error: write EPIPE
at errnoException (net.js:901:11)
at Object.afterWrite (net.js:718:19)
events.js:72
throw er; // Unhandled 'error' event
^
Error: write after end
at writeAfterEnd (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/node_modules/caterpillar/node_modules/readable-stream/lib/_stream_writable.js:146:12)
at Logger.Writable.write (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/node_modules/caterpillar/node_modules/readable-stream/lib/_stream_writable.js:193:5)
at Logger.log (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/node_modules/caterpillar/out/lib/caterpillar.js:191:10)
at Logger.log (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/node_modules/caterpillar/out/lib/caterpillar.js:3:59)
at DocPad.log (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/out/lib/docpad.js:1911:16)
at DocPad.log (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/out/lib/docpad.js:4:59)
at forward (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/out/lib/docpad.js:2990:14)
at /Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/out/lib/docpad.js:3Anderss-iMac:techbasics
update error
module.js:340
throw err;
^
Error: Cannot find module 'lazy-require'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Users/anderskitson/sites/techbasics/node_modules/docpad/out/lib/docpad.js:11:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
An error occured within the child DocPad instance: exited with a non-zero status code
After running sudo npm install -g docpad#6
npm ERR! TypeError: options.uid should be a number
npm ERR! at ChildProcess.spawn (child_process.js:915:24)
npm ERR! at exports.spawn (child_process.js:715:9)
npm ERR! at runCmd_ (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/npm/lib/utils/lifecycle.js:181:14)
npm ERR! at /Users/anderskitson/.nvm/v0.10.21/lib/node_modules/npm/lib/utils/lifecycle.js:157:7
npm ERR! at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/Users/anderskitson/.nvm/v0.10.21/bin/npm" "install" "-g" "docpad#6"
npm ERR! cwd /Users/anderskitson/sites
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.12
> typechecker#2.0.6 preinstall /Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/node_modules/typechecker
> node ./cyclic.js
npm ERR! TypeError: options.uid should be a number
npm ERR! at ChildProcess.spawn (child_process.js:915:24)
npm ERR! at exports.spawn (child_process.js:715:9)
npm ERR! at runCmd_ (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/npm/lib/utils/lifecycle.js:181:14)
npm ERR! at /Users/anderskitson/.nvm/v0.10.21/lib/node_modules/npm/lib/utils/lifecycle.js:157:7
npm ERR! at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/Users/anderskitson/.nvm/v0.10.21/bin/npm" "install" "-g" "docpad#6"
npm ERR! cwd /Users/anderskitson/sites
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.12
npm http GET https://registry.npmjs.org/joe
npm http GET https://registry.npmjs.org/joe-reporter-console
npm http GET https://registry.npmjs.org/progress/0.1.0
npm http GET https://registry.npmjs.org/ansistyles
npm http GET https://registry.npmjs.org/ansicolors
npm http GET https://registry.npmjs.org/readable-stream
> taskgroup#3.2.3 preinstall /Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/node_modules/taskgroup
> node ./cyclic.js
npm ERR! TypeError: options.uid should be a number
npm ERR! at ChildProcess.spawn (child_process.js:915:24)
npm ERR! at exports.spawn (child_process.js:715:9)
npm ERR! at runCmd_ (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/npm/lib/utils/lifecycle.js:181:14)
npm ERR! at /Users/anderskitson/.nvm/v0.10.21/lib/node_modules/npm/lib/utils/lifecycle.js:157:7
npm ERR! at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/Users/anderskitson/.nvm/v0.10.21/bin/npm" "install" "-g" "docpad#6"
npm ERR! cwd /Users/anderskitson/sites
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.12
Running npm install -g docpad#6
Anderss-iMac:sites anderskitson$ npm install -g docpad#6
npm http GET https://registry.npmjs.org/docpad
npm http 304 https://registry.npmjs.org/docpad
npm ERR! error rolling back Error: EACCES, unlink '/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore'
npm ERR! error rolling back docpad#6.53.4 { [Error: EACCES, unlink '/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore']
npm ERR! error rolling back errno: 3,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore' }
npm ERR! Error: EACCES, unlink '/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore'
npm ERR! { [Error: EACCES, unlink '/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/Users/anderskitson/.nvm/v0.10.21/bin/npm" "install" "-g" "docpad#6"
npm ERR! cwd /Users/anderskitson/sites
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.12
npm ERR! path /Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore'
npm ERR! Error: EACCES, open 'npm-debug.log'
npm ERR! { [Error: EACCES, open 'npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/Users/anderskitson/.nvm/v0.10.21/bin/npm" "install" "-g" "docpad#6"
npm ERR! cwd /Users/anderskitson/sites
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.12
npm ERR! path npm-debug.log
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open 'npm-debug.log'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/anderskitson/sites/npm-debug.log
npm ERR! not ok code 0