How to downgrade Node version

前端 未结 12 750
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-12 10:53

I want to downgrade my Node version from the latest to v6.10.3.

But nothing worked so far. Tried NVM and it gives an error as well by saying make comman

相关标签:
12条回答
  • 2020-12-12 11:25

    For windows 10,

    • Uninstalling the node from the "Add or remove programs"
    • Installing the required version from https://nodejs.org/en/

    worked for me.

    0 讨论(0)
  • 2020-12-12 11:26

    You can use n for node's version management. There is a simple intro for n.

    $ npm install -g n
    $ n 6.10.3
    

    this is very easy to use.

    then you can show your node version:

    $ node -v
    v6.10.3
    

    For windows nvm is a well-received tool.

    0 讨论(0)
  • 2020-12-12 11:26
     curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
     sudo npm install -g n
     sudo n 10.15
     npm install
     npm audit fix
     npm start
    
    0 讨论(0)
  • 2020-12-12 11:27

    Steps to downgrade to node8

    brew install node@8
    brew link node@8 --force
    

    if warning remove the folder and files as indicated in the warning then again the command :

    brew link node@8 --force
    
    0 讨论(0)
  • 2020-12-12 11:29

    In Mac there is a fast method with brew:

    brew search node
    

    You see some version, for example: node@10 node@12 ... Then

    brew unlink node
    

    And now select a before version for example node@12

    brew link --overwrite --force node@12
    

    Ready, you have downgraded you node version.

    0 讨论(0)
  • 2020-12-12 11:33

    If you are on macOS and are not using NVM, the simplest way is to run the installer that comes from node.js web site. It it clever enough to manage substitution of your current installation with the new one, even if it is an older one. At least this worked for me.

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