apt-get安装的node.js版本太低了
Tofloor
poster avatar
bigben446
deepin
2019-09-21 19:51
Author
v4.8.2,现在最新版已经12.10了。。。大家怎么解决的https://nodejs.org/en/



Reply Favorite View the author
All Replies
avatar
走钢丝
deepin
2019-09-21 20:37
#1
我记得官方的下载安装页面上有提供 apt 源。要点好几个链接,最后到了 https://github.com/nodesource/di ... EADME.md#debinstall
Reply View the author
avatar
bigben446
deepin
2019-09-23 07:42
#2
https://bbs.deepin.org/post/182925
我记得官方的下载安装页面上有提供 apt 源。要点好几个链接,最后到了 https://github.com/nodesource/dist ...

好像目前版本不支持

## Your distribution, identified as "stable", 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
走钢丝
deepin
2019-09-23 08:09
#3
https://bbs.deepin.org/post/182925
好像目前版本不支持

## Your distribution, identified as "stable", is not currently supported, plea ...

你用的哪个?记得用 debian 的,deepin 基于 debian。。。
Reply View the author
avatar
bigben446
deepin
2019-09-23 08:25
#4
https://bbs.deepin.org/post/182925
你用的哪个?记得用 debian 的,deepin 基于 debian。。。

谢谢,已经搞定了,设定debian strech的版本

deb https://deb.nodesource.com/node_12.x stretch main
deb-src https://deb.nodesource.com/node_12.x stretch main
Reply View the author
avatar
许自强
deepin
2019-09-23 19:34
#5
推荐使用nvm管理node版本
Reply View the author
avatar
158******20
deepin
2019-09-23 22:24
#6
sudo apt-get install npm
sudo npm install n -g
n stable
这样已经更新10版本了,够用了
如果还是8版本,请将 /usr/bin/node /usr/local/bin/node 10版本的覆盖8版本的就好了 使用 sudo cp /usr/local/bin/node /usr/bin/bin
至于那个覆盖那个,忘记了,自己使用命令看 node版本吧  /usr/bin/node -v   和 /usr/local/bin/node -v
Reply View the author