nodist
nodist copied to clipboard
Can not use npm in git bash after installing Nodist.
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!
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
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!
Can you run the below in Git Bash?
$ which nodist
$ which node
$ which npm
$ which nodist /c/Nodist/bin/nodist
$ which npm /c/Nodist/bin/npm
$ which node /c/Nodist/bin/node Yes, it runs well as above.
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