-
Notifications
You must be signed in to change notification settings - Fork 337
npm install fails #743
Comments
hey @mxdpeep ! based on the install command you are running ( if you've installed node without a tool like this, your npm global cache (which we recommend using a node version manager, because these tools will install and keep node and it's global cache in your user directory, which won't require these perms. cargo does this by default (which is why the cargo install works.) if you'd like to use the npm installer, we recommend you reinstall node using a version manager! |
it is a correct installation of node.js from the official site |
@ashleygwilliams |
Hey y'all! Thanks for commenting on this and I'm sorry that this is causing so much trouble! Unfortunately this is actually a fairly common problem with global installs from npm. So much so that they have their own reference page! https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally I'd recommend following along there and hopefully that will help work through some of the pain points here. |
yes thanks @EverlastingBugstopper |
Seems like
Tried it on Mac OS Big Sur |
working through my very old mails and seeing replies here I have to correct my stance on this issue. @EverlastingBugstopper 's comment can't be highlighted enough
apologies if I offended anybody |
@ahmedh01 - this should be working as expected on your system now. If not please let us know, thanks! |
🐛 Bug Report
Environment
rustc -V
: rustc 1.36.0node -v
: v11.15.0wrangler -V
: N/Anpm version: 6.7.0
Steps to reproduce
sudo npm i @cloudflare/wrangler -g
What did you expect to see?
install the wrangler package
What did you see instead?
/usr/bin/wrangler -> /usr/lib/node_modules/@cloudflare/wrangler/run-wrangler.js
fs.js:119
throw err;
^
Error: EACCES: permission denied, mkdir '/home/mxdpeep/.wrangler'
at mkdirSync (fs.js:773:3)
at Object. (/usr/lib/node_modules/@cloudflare/wrangler/install-wrangler.js:58:3)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)
at internal/main/run_main_module.js:21:11
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @cloudflare/wrangler@1.4.0 postinstall:
node install-wrangler.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @cloudflare/wrangler@1.4.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
The text was updated successfully, but these errors were encountered: