Visual Studio 2017 External Tools npm Not working

前端 未结 6 1822
猫巷女王i
猫巷女王i 2021-01-14 15:23

I have a typescript project that requires npm 3+. I\'ve install it to C:\\Program Files\\nodesjs, and I set my system environment variables to point there.

In vis

6条回答
  •  生来不讨喜
    2021-01-14 15:50

    For your Node installation folder, I'm assuming you meant:

    C:\Program Files\nodejs NOT
    C:\Program Files\nodesjs

    Also, you're testing the npm version from the Package Manager Console. I'm not sure that respects your external tools configuration (but rather a Powershell Profile) so the result there may not change.

    Instead, with your project open, you should be able to right-click on the npm node under Dependencies in Solution Explorer and select Restore Packages. In your Output window (Bower/npm), you should see the npm install command being executed from your machine-wide Node installation:

    "C:\Program Files\nodejs\npm.CMD" install

提交回复
热议问题