Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js apt get安装的NodeJS的最新版本_Node.js_Webserver_Apt Get - Fatal编程技术网

Node.js apt get安装的NodeJS的最新版本

Node.js apt get安装的NodeJS的最新版本,node.js,webserver,apt-get,Node.js,Webserver,Apt Get,Debian Linux(Debian Stable、UbuntuLTS等)和其他人使用apt get作为良好可靠的安装工具。我只需要使用apt get。。。问题是我做的很简单 sudo apt-get install nodejs 但结果是我有了nodejs--version(或者node--version) (!)这不是今天的 我还尝试了node-p process.versions.v8,结果是 3.14.5.9 因此,也非常小于5.2 笔记 我正在使用Ubuntu14LTS

Debian Linux(Debian Stable、UbuntuLTS等)和其他人使用
apt get
作为良好可靠的安装工具。我只需要使用apt get。。。问题是我做的很简单

sudo apt-get install nodejs
但结果是我有了
nodejs--version
(或者
node--version

(!)这不是今天的

我还尝试了
node-p process.versions.v8
,结果是

  3.14.5.9  
因此,也非常小于5.2


笔记 我正在使用Ubuntu14LTS。。。。尝试一种解决方法,但不起作用

 sudo apt-get remove --purge nodejs
 sudo apt-get remove --purge node  #enforce any lapse
以及


不起作用,有些结果。

从nodesource安装时,需要指定要安装的版本

curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_iojs_3.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_iojs_2.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_iojs_1.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_0.10 | sudo -E bash -

sudo-apt-get-install-y-nodejs
(或
sudo-apt-get-y-iojs
用于iojs)

当使用没有任何版本的url时(就像您所做的那样),出于某种原因,您似乎得到了节点0.10


您会发现。

从nodesource安装时,需要指定要安装的版本

curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_iojs_3.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_iojs_2.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_iojs_1.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_0.10 | sudo -E bash -

sudo-apt-get-install-y-nodejs
(或
sudo-apt-get-y-iojs
用于iojs)

当使用没有任何版本的url时(就像您所做的那样),出于某种原因,您似乎得到了节点0.10


你会找到的。

谢谢!您显示了许多
curl
命令,但我只需要第一个。。。还有其他我不想移除的东西。。。他们叫什么名字?(如何使用
sudo PPA purge nodeJS
?nodeJS PPA不存在,真实名称是什么?)您好?即使没有对旧版本进行
ppa清除
,它也可以正常工作(!)。。。但是,请解释如何从PPA中清除旧版本(清除
curl-sLhttps://deb.nodesource.com/setup_Y.x
这是我无意中做的,或者没有使用)。谢谢!您显示了许多
curl
命令,但我只需要第一个。。。还有其他我不想移除的东西。。。他们叫什么名字?(如何使用
sudo PPA purge nodeJS
?nodeJS PPA不存在,真实名称是什么?)您好?即使没有对旧版本进行
ppa清除
,它也可以正常工作(!)。。。但是,请解释如何从PPA中清除旧版本(清除
curl-sLhttps://deb.nodesource.com/setup_Y.x
这是我无意中做的,或者没有使用)。
 curl -sL https://deb.nodesource.com/setup | sudo bash -
 sudo apt-get install nodejs
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_iojs_3.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_iojs_2.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_iojs_1.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_0.10 | sudo -E bash -