nodejs vs node on ubuntu 12.04

前端 未结 20 2149
Happy的楠姐
Happy的楠姐 2020-11-22 12:29

I installed nodejs on ubuntu from instructions given here

When I write node --version in the terminal I see this :
-bash: /usr/sbin/node: No

20条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 13:01

    Just use NVM(Node Version Manager) - https://github.com/creationix/nvm

    It has become the standard for managing Node.js.

    When you need a new version:

    nvm install NEW_VER
    nvm use XXX
    

    If something goes wrong you can always go back with

    nvm use OLD_VER
    

提交回复
热议问题