Installing Node.js (and npm) on Windows 10

后端 未结 8 840
名媛妹妹
名媛妹妹 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:23

    go to http://nodejs.org/

    and hit the button that says "Download For ..."

    This'll download the .msi (or .pkg for mac) which will do all the installation and paths for you, unlike the selected answer.

    0 讨论(0)
  • 2020-11-28 05:28

    You should run the installer as administrator.

    1. Run the command prompt as administrator
    2. cd directory where msi file is present
    3. launch msi file by typing the name in the command prompt
    4. You should be happy to see all node commands work from new command prompt shell
    0 讨论(0)
提交回复
热议问题