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

Can not use npm in git bash after installing Nodist. #223

Open
Octopus-Yu opened this issue Mar 7, 2019 · 5 comments
Open

Can not use npm in git bash after installing Nodist. #223

Octopus-Yu opened this issue Mar 7, 2019 · 5 comments

Comments

@Octopus-Yu
Copy link

image
image
image

Hi,

I can use it in windows cmd and windows powershell. I use win 10. I can not use npm in git bash while node and nodist work well in git bash and cmd and powershell.

Thanks for help!

@blzaugg
Copy link
Contributor

blzaugg commented Mar 7, 2019

This is what I get on:

  • Windows 7
  • Git for Windows v2.8.3 installed:
  • nodist 0.8.8
$ which nodist
/d/Apps/nodist/bin/nodist

$ which node
/d/Apps/nodist/bin/node

$ which npm
/d/Apps/nodist/bin/npm

Git Bash

$ npm -v
6.1.0

cmd.exe

C:\>npm -v
6.1.0

Windows PowerShell

PS C:\> npm -v
6.1.0

Git CMD

C:\>npm -v
6.1.0

@Octopus-Yu
Copy link
Author

I guess it is some kind of "path" issue in my computer,. When I use a win7 PC ,Nodist works well and in another win 10 pc, it also works well. It may not a common issue, but I would like to know how to fix that. It troubles me for a long time. Thanks for help!

@blzaugg
Copy link
Contributor

blzaugg commented Mar 8, 2019

Can you run the below in Git Bash?

$ which nodist

$ which node

$ which npm

@Octopus-Yu
Copy link
Author

$ which nodist
/c/Nodist/bin/nodist

$ which npm
/c/Nodist/bin/npm

$ which node
/c/Nodist/bin/node
Yes, it runs well as above.

@spoilerdo
Copy link

Do you have to install nodist on the /c/ path. Because I currently have it installed in the Programe Files (x86) folder and that doesn't seem to work

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

3 participants