How to install older version of node.js on Windows?

前端 未结 6 1780
孤独总比滥情好
孤独总比滥情好 2021-01-30 13:06

I need to install node.js of version 4.0.0 I tried this:

npm install -g npm@4.0.0 

But I got this message: npm is not recognized as an internal

相关标签:
6条回答
  • 2021-01-30 13:07

    run:

    npm install -g node@7.10.1

    - or whatever version you want after the @ symbol (This works as of 2019)
    
    0 讨论(0)
  • 2021-01-30 13:09

    Go here and find the version you want to install and then download the correct msi file and run the installer. You cannot install node by running this command, also the error you receive is stating that npm is not on your path which suggests machine doesn't currently have node installed on it

    0 讨论(0)
  • 2021-01-30 13:11

    For windows, best is: nvm-windows

    1)install the .exe

    2)restart (otherwise, nvm will not be undefined)

    3)run CMD as admin,

    4)nvm use 5.6.0

    Note: You MUST run as Admin to switch node version every time.

    0 讨论(0)
  • 2021-01-30 13:25

    https://nodejs.org/en/download/releases/ [Download the specified version]

    0 讨论(0)
  • 2021-01-30 13:28

    Just uninstall whatever node version you have in your system. Then go to this site https://nodejs.org/download/release/ and choose your desired version like for me its like v7.0.0/ and click on that go get .msi file of that. Finally you will get installer in your system, so install it. It will solve all your problems.

    0 讨论(0)
  • 2021-01-30 13:30

    You can use Nodist for this purpose. Download it from here.

    Usage:

    nodist                         List all installed node versions.
    nodist list
    nodist ls
    
    nodist <version>               Use the specified node version globally (downloads the executable, if necessary).
    nodist latest                  Use the latest available node version globally (downloads the executable, if necessary).
    
    nodist add <version>           Download the specified node version.
    

    More Nodist commands here

    0 讨论(0)
提交回复
热议问题