Installing Node.js (and npm) on Windows 10

后端 未结 8 886
名媛妹妹
名媛妹妹 2020-11-28 04:48

I had some issues trying to install Node on Windows 10 and found the solution.

The error was as follows:

C:\\Users\\Stephan>npm
Error: E

8条回答
  •  无人及你
    2020-11-28 05:11

    In addition to the answer from @StephanBijzitter I would use the following PATH variables instead:

    %appdata%\npm
    %ProgramFiles%\nodejs
    

    So your new PATH would look like:

    [existing stuff];%appdata%\npm;%ProgramFiles%\nodejs
    

    This has the advantage of neiter being user dependent nor 32/64bit dependent.

提交回复
热议问题