How to downgrade Node version

前端 未结 12 752
爱一瞬间的悲伤
爱一瞬间的悲伤 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:45

    If you're on Windows I suggest manually uninstalling node and installing chocolatey to handle your node installation. choco is a great CLI for provisioning a ton of popular software.

    Then you can just do,

    choco install nodejs --version $VersionNumber
    

    and if you already have it installed via chocolatey you can do,

    choco uninstall nodejs 
    choco install nodejs --version $VersionNumber
    

    For example,

    choco uninstall nodejs
    choco install nodejs --version 12.9.1
    

提交回复
热议问题