-
-
Notifications
You must be signed in to change notification settings - Fork 734
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
npm error after using n to switch versions #101
Comments
Same thing here. |
Getting the same error. |
I think it has to do with my manual install of v0.6.19, (since there is no compiled version for mac of 0.6.19, I had to copy files manually to: and I noticed there are files for npm (in 0.8.20) here: |
works for me :s |
having the same problem node v0.8.22 |
same, but I fixed it by manually running "curl https://npmjs.org/install.sh | sh" once |
+1 from a clean install (manually removed all previous node & npm artifacts), though I installed to /opt/local instead of /usr & exported N_PREFIX accordingly. Failed on n version 0.8.2 and the latest 0.9.1. |
When i install Node and it bring me a rolling back action and giving me a error |
C:\Users\Zack\Desktop\sparkle>npm install ttapi module.js:340 |
Im using a pc |
Same issue, |
Check that, reinstall npm didn't solve it. Had to reinstall node, and n unfortunately doesn't work 100% of the time. =( |
It looks like the reason for the previous "fix" was that I removed /usr/local/npm (and relaunched my terminal), which caused it to fallback on ~/.npm_prefix/bin/npm which works. So, I'm assuming this is an npm prefix issue. |
Was switching from using |
Thanks guys, I was able to fix my issues with: as well. |
This fixed my issue as well. Note: If you get "301 Moved Permanently" then try |
thank you @mikemoser |
1 similar comment
thank you @mikemoser |
Thank you @mikemoser :) |
You da man @mikemoser ;) |
Thaaanks @mikemoser 👯 |
I'm still having this issue and I'm using the latest version of n. |
@mikemoser ty dude! you save me |
|
thanks @mikemoser |
@mikemoser Thank's! 👍 |
@dznet I think your problem is just that the |
@dznet I have no idea what you are doing there as you don't give any context, but yes, your problem is solved, that one is a new one, a module is missing, inside a Node.js project you can call |
@maxrimue sorry. i try run test Node.js project with mongodb |
I think your problem is that your app is looking for "mongobd", it's called
|
right on @mikemoser ! |
@mikemoser ty dude! you are awesome! |
I had this problem too, because I was logged in as root. I just su to another user account, and the problem disapeared, that was kinda magic. |
$ curl https://npmjs.org/install.sh | sh Vote +1 |
thanks :) |
Thanks @mikemoser |
1 similar comment
Thanks @mikemoser |
Going to add this catch to the README since it's been helpful to so many people! Thanks @mikemoser. 😄 |
Add npm error information (#101) to README.
I've been using n to sucessfully switch node versions (it seems) for the last few days, but I'm having problems now with npm:
module.js:340
throw err;
^
Error: Cannot find module 'npmlog'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at /usr/local/bin/npm:19:11
at Object. (/usr/local/bin/npm:87:3)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
Thanks for your help.
The text was updated successfully, but these errors were encountered: