deepin 安装 node-v8 以上怎么安装?
Tofloor
poster avatar
amy
deepin
2018-03-01 20:32
Author
deepin 安装 node-v8 以上怎么安装? 昨天晚上折腾一晚都没装好,只能装到node-v6, 求大神们给解决方法!

Reply Favorite View the author
All Replies
avatar
jingle
deepin
2018-03-01 20:39
#1
Reply View the author
avatar
186******26
deepin
2018-03-01 21:58
#2
https://bbs.deepin.org/post/153682
https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions  

或者  ...

## Your distribution, identified as "unstable", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support
Reply View the author
avatar
duanyao
deepin
2018-03-01 22:24
#3
Reply View the author
avatar
dameng
deepin
2018-03-01 22:36
#4
本帖最后由 dameng 于 2018-3-2 22:05 编辑




用源码编译安装吧,既稳定又能用最新版。
  1. wget https://npm.taobao.org/mirrors/node/v8.9.3/node-v8.9.3.tar.gz
  2. tar zxvf node-v8.9.3.tar.gz
  3. cd node-v8.9.3/
  4. ./configure
  5. make
  6. make install
Copy the Code



Reply View the author
avatar
176******80
deepin
2018-03-01 23:13
#5
sudo apt install nodejs npm
sudo npm i -g n
sudo n lts
Reply View the author
avatar
rdlg
deepin
2018-03-01 23:56
#6
直接下载官网提供的包 解压就能跑起来。。
node环境还是比较干净的 常用的全局命令可以做个软连接
Reply View the author
avatar
amy
deepin
2018-03-02 06:08
#7
谢谢各位大神,已安装好node-v8.9.3
Reply View the author