Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot update global packages #638

Closed
webartoli opened this issue Apr 18, 2021 · 1 comment
Closed

Cannot update global packages #638

webartoli opened this issue Apr 18, 2021 · 1 comment

Comments

@webartoli
Copy link

NVM4W version: 1.1.7

My Environment

Windows 10, x64, English

Expected Behavior

Launching npm update -g command, all globally packages are updated

Actual Behavior

> npm update -g
npm ERR! code EEXIST
npm ERR! path C:\dev-env\scoop\apps\nvm\current\nodejs\nodejs\npx.cmd
npm ERR! Refusing to delete C:\dev-env\scoop\apps\nvm\current\nodejs\nodejs\npx.cmd: is outside C:\dev-env\scoop\apps\nvm\current\nodejs\nodejs\node_modules\npm and not a link
npm ERR! File exists: C:\dev-env\scoop\apps\nvm\current\nodejs\nodejs\npx.cmd
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\cbartoli\AppData\Roaming\npm-cache\_logs\2021-04-18T14_04_49_679Z-debug.log

Steps to reproduce the problem:

> npm update -g

I have installed nvm via scoop, so I've tried to lanuch manually the same command from the real directory without any symlink.
Same result.

> cd C:\dev-env\scoop\apps\nvm\1.1.7\nodejs\nodejs
>  ./npm update -g

npm ERR! code EEXIST
npm ERR! path C:\dev-env\scoop\apps\nvm\1.1.7\nodejs\nodejs\npm.cmd
npm ERR! Refusing to delete C:\dev-env\scoop\apps\nvm\1.1.7\nodejs\nodejs\npm.cmd: is outside C:\dev-env\scoop\apps\nvm\1.1.7\nodejs\nodejs\node_modules\npm and not a link
npm ERR! File exists: C:\dev-env\scoop\apps\nvm\1.1.7\nodejs\nodejs\npm.cmd
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\cbartoli\AppData\Roaming\npm-cache\_logs\2021-04-18T14_10_26_402Z-debug.log

Maybe related with #300 ?

@coreybutler
Copy link
Owner

Yes, this is related to the npm hard-coding issue cited above. The scoop installer is maintained outside of this project. I don't know if there is anything that can be done though, so I'm closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants