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

npm isntalls to nodist dir after uninstallation #73

Closed
tomyam1 opened this issue Jan 28, 2015 · 4 comments
Closed

npm isntalls to nodist dir after uninstallation #73

tomyam1 opened this issue Jan 28, 2015 · 4 comments

Comments

@tomyam1
Copy link

tomyam1 commented Jan 28, 2015

I tried nodist but decided not to use it for now.

I followed the un-installation instructions, and can verify that:

  1. The string "nodist" appears nowhere in my env.
  2. I deleted the nodist directory.

I than installed nodejs from nodejs.org.

The problem - every module I install with npm -g goes to nodist/bin directory.

I suspect it has something to do with a soft link created by nodist that was not removed.

Any ideas?

@jakub-g
Copy link
Collaborator

jakub-g commented Jan 28, 2015

You need to reset npm prefix:

In installation notes you have last point saying to run

npm config set prefix %NODIST_PREFIX%\bin

It's missing its counterpart in uninstall notes

See also http://stackoverflow.com/questions/5926672/where-does-npm-install-packages/27298237#27298237

@tomyam1
Copy link
Author

tomyam1 commented Jan 28, 2015

I get an error:

> C:\Program Files\ConEmu>npm config set prefix C:\Program Files\nodejs\node_modules\npm
Error: ENOENT, stat 'F:\tepez\nodist\bin'

@tomyam1
Copy link
Author

tomyam1 commented Jan 28, 2015

Solved by temporarily creating a folder F:\tepez\nodist\bin.

@tomyam1 tomyam1 closed this as completed Jan 28, 2015
@tomyam1
Copy link
Author

tomyam1 commented Jan 28, 2015

thanks @jakub-g

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