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

前端 未结 6 1832
孤独总比滥情好
孤独总比滥情好 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:30

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

    Usage:

    nodist                         List all installed node versions.
    nodist list
    nodist ls
    
    nodist                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            Download the specified node version.
    

    More Nodist commands here

提交回复
热议问题