点击下载:Linux x64

 

文件解压:

方式1
$xz -d file.tar.xz $tar -xvf file.tar

 

方式2
$tar xvJf  file.tar.xz

  

解压后,把它移动到:/usr/local

命令操作如下:

sudo mv /home/wegame/Downloads/node-v8.9.4-linux-x64  /usr/local/node

 

最后添加进path,操作如下

sudo gedit /etc/profile

 

Deepin-安装node

 

最后输入:

 

source /etc/profile

 

检验代码

wegame@wegame-pc:/$ node -v && npm -v
v8.9.4
5.6.0
wegame@wegame-pc:/$ 

  

更多命令使用方法,请访问man.linux

 

命令解析:

&&:与操作

tar:压缩与解压

mv:移动与重命名文件夹

gedit:默认文本编辑工具

source:当前目录读取并且执行

  

 

 

  

相关文章:

  • 2021-04-25
  • 2021-04-27
  • 2021-10-14
  • 2021-04-13
  • 2021-09-22
  • 2021-12-22
  • 2021-04-21
  • 2021-03-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
  • 2022-12-23
  • 2021-05-08
  • 2021-12-04
  • 2021-12-04
相关资源
相似解决方案