npm install error `not foundram Files/nodejs/npm: 3: /mnt/c/Program Files/nodejs/npm:`

后端 未结 12 1705
礼貌的吻别
礼貌的吻别 2021-01-30 08:24

I have installed Ubuntu Bash on Windows. I already have nodejs and npm on my windows machine at C:\\Program Files\\nodejs. In the bash she

12条回答
  •  醉梦人生
    2021-01-30 08:47

    On Visual Studio -> Tools -> Options -> Projects and Solutions -> Web Package Management -> make sure $(PATH) is above all the rest. As long it is not located in the top of the list VS will try to use VS tools instead of npm.

    You should also refer windows to the current npm version by following this screenshot, after try npm --version changing npm path

提交回复
热议问题