-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Throws error when asking for any version or alias #912
Comments
On second thought, this looks like you have a broken |
mmm I did the nvm use default --silent
module.js:339
throw err;
^
Error: Cannot find module 'npm-registry-client'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/Users/marcoslh/.nvm/versions/node/v5.0.0/lib/node_modules/npm/lib/cache/caching-client.js:9:22)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `npm config delete prefix` or `nvm use --delete-prefix v5.0.0 --silent` to unset it. the I ran ; cli configs
user-agent = "npm/3.4.1 node/v5.1.0 darwin x64"
; userconfig /Users/marcoslh/.npmrc
registry = "http://registry.npmjs.org/"
; builtin config undefined
prefix = "/usr/local"
; node bin location = /usr/local/Cellar/node/5.1.0/bin/node
; cwd = /Users/marcoslh
; HOME = /Users/marcoslh
; "npm config ls -l" to show all defaults. may be the 5.0.0 and 5.1.0 are conflicting? |
No worries, Uninstalling and reinstalling the version worked. Thanks @ljharb! 👍 |
Glad to hear it! Please do note that installing |
When I try
nvm use [version or alias]
this error jumps 😢The text was updated successfully, but these errors were encountered: