nodist icon indicating copy to clipboard operation
nodist copied to clipboard

Can not use npm in git bash after installing Nodist.

Open Octopus-Yu opened this issue 5 years ago • 5 comments

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!

Octopus-Yu avatar Mar 07 '19 18:03 Octopus-Yu

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

blzaugg avatar Mar 07 '19 19:03 blzaugg

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!

Octopus-Yu avatar Mar 08 '19 13:03 Octopus-Yu

Can you run the below in Git Bash?

$ which nodist

$ which node

$ which npm

blzaugg avatar Mar 08 '19 19:03 blzaugg

$ which nodist /c/Nodist/bin/nodist

$ which npm /c/Nodist/bin/npm

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

Octopus-Yu avatar Mar 11 '19 17:03 Octopus-Yu

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

spoilerdo avatar May 11 '19 20:05 spoilerdo