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

The first test nukes NPM #27

Open
abjbhat opened this issue Jun 22, 2015 · 4 comments
Open

The first test nukes NPM #27

abjbhat opened this issue Jun 22, 2015 · 4 comments

Comments

@abjbhat
Copy link

abjbhat commented Jun 22, 2015

I ran how-to-npm verify for the very first test. When the tool/test found that I have an out of date version, it reported it as so. Of course, after that, I could not find npm on bash. I can verify that npm was installed, because that's how I installed how-to-npm in the first place. sudo or not, it nukes my npm install every time.

I had to reinstall node each time get things working again. Thanks a lot, how-to-npm!

My system details
OS X 10.10.3
Node v0.12.4

@ericmarkmartin
Copy link

Did you execute npm install npm -g?

On OS X, because a global install modifies /usr/local/lib, you need root permissions to install globally. Thus, when you try to install npm globally with npm without privilege, it removes your version and goes to get the new one, only to find it can't install it globally (doesn't have adequate permissions). The easy fix is to instead run sudo npm install npm -g. It will prompt you to type in your password (your password will not show up in the terminal window, but don't worry, it's there) and you'll be golden. You usually have to use sudo to install any module globally with npm on OS X.

@abjbhat
Copy link
Author

abjbhat commented Jun 28, 2015

Eric,

Each time that I ran how-to-npm verify, npm would vanish from my system. I had to rerun the node dpkg installer to get npm back after attempting the first test.

@tad
Copy link

tad commented Jul 31, 2015

Eric - I had this problem as well - nuked my node installation when I tried to

npm install npm -g

I didn't do sudo, but I've installed plenty of other npm modules without using sudo. Why is this different?

@claudiopro
Copy link
Member

+1, happened to me also. Luckily I had just installed 4.0.0 😁

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

No branches or pull requests

5 participants