How come npm install doesn't work on git bash

前端 未结 13 1204
天涯浪人
天涯浪人 2020-12-07 19:00

I have git bash open and I type in npm install and then it returns:

bash: npm command not found

I don\'t understand, because I

13条回答
  •  轮回少年
    2020-12-07 19:26

    I know this post is old but this could help someone who installed Node / npm via Visual Studio Installer. I tried every solution I could find online but none works until I did the following:

    • Uninstall Node using Visual Studio Installer.

    • Install it using installer downloaded from the Node.js site. Use default options.

提交回复
热议问题