nodejs vs node on ubuntu 12.04

前端 未结 20 1951
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:26

    This works for me:

    alias node=nodejs
    

    After following the instructions in this link.

    0 讨论(0)
  • 2020-11-22 13:28

    You can execute this command to enable nodejs:

    scl enable rh-nodejs8 bash
    

    Note: Check your node version.

    Source: https://developers.redhat.com/products/softwarecollections/hello-world/

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