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

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

提交回复
热议问题