deepin 是基于 debian 开发的系统,但是按照 nodejs 官网安装最新版本的时候却提示不支持
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - ## Installing the NodeSource Node.js v8.x repo... ## Populating apt-get cache... + apt-get update 命中:1 http://packages.deepin.com/deepin panda InRelease 命中:2 https://deb.nodesource.com/node_8.x jessie InRelease 正在读取软件包列表... 完成 ## Confirming "unstable" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_8.x/dists/unstable/Release' ## 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
解决办法是把脚本下载下来,修改其中一行,然后在本机上执行脚本
wget https://deb.nodesource.com/setup_8.x -O node_8.x.sh vi node_8.x.sh # 找到DISTRO=$(lsb_release -c -s)这行,修改为:DISTRO="jessie" cat ./Downloads/script.sh | sudo -E bash - sudo apt-get install -y nodejs
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于