[英]How to install nodejs 4.* on Ubuntu 14.04
我一直在看一些页面,这些页面解释了如何在Ubuntu 14.04上安装nodejs 4. *,但是没有安装,并告诉我我已经拥有最新版本:
$ curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
## Installing the NodeSource Node.js v4.x LTS Argon repo...
## Populating apt-get cache...
+ apt-get update
Ign http://archive.canonical.com precise InRelease
Ign http://extras.ubuntu.com trusty
.
.
.
Ign http://jp.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://jp.archive.ubuntu.com trusty/universe Translation-en_US
W: Failed to fetch http://dl.google.com/linux/webdesigner/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
Error executing command, exiting
$ sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 173 not upgraded.
$ node --version
v0.10.25
curl命令的末尾有一个错误,但我不知道这是否相关。 我正在遵循此指南-https: //nodejs.org/en/download/package-manager/-但其他页面似乎相同。 怎么了?
嘿,最简单的解决方案是使用nvm(节点版本管理器),通过使用nvm,您可以使用下面的简单命令跟随链接轻松地切换到任何版本的节点,以安装nvm。 https://www.digitalocean.com/community/tutorials/how-to-install-node-js-with-nvm-node-version-manager-on-a-vps
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.