1)通过apt-get install nodejs命令来实现
    image.png
    2)安装后,可以通过node-v查看版本号

    3)通过apt-get install npm;