1. 程式人生 > >Deepin-安裝node

Deepin-安裝node

usr blank 解壓 linux 點擊 light 安裝 tar -xvf oca

點擊下載: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

 

技術分享圖片

最後輸入:

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:當前目錄讀取並且執行

  

  

Deepin-安裝node