I want to install the latest stable version of node - Version 0.6.19 (stable).
我想安装最新稳定版本的node - version 0.6.19(稳定)。
http://blog.nodejs.org/ indicates to upgrade to NPM to 1.1.24
http://blog.nodejs.org/指示将NPM升级到1.1.24。
Is there a simple way to upgrade to this? I can't figure out how exactly to download and target this version.
有简单的方法升级到这个吗?我不知道如何下载和定位这个版本。
The below gives me npm -v 1.0.106
下面是npm -v 1.0.106
npm upgrade npm
or
或
npm upgrade npm 1.1.24
5 个解决方案
#1
22
Update 2 (03/11/15)
Courtesy: whyleee
礼貌:whyleee
On Windows npm is installed together with node in "Program Files". Use npm install npm -g to install it in "%AppData%\npm" and delete 'npm', 'npm.cmd' files from "C:\Program Files\nodejs" dir (because your PATH is looking there first). After that you can use npm update npm -g in the future
在Windows npm上安装了“程序文件”中的节点。使用npm安装npm -g在“%AppData%\npm”中安装,并删除“npm”、“npm”。来自“C:\程序文件\nodejs”目录的cmd文件(因为您的路径首先在那里查找)。之后,您可以在将来使用npm更新npm -g
According to the docs
根据文档
For windows
(it also worked on Mac for me)
对于windows(它也适用于Mac)
To update npm, run the npm update npm -g
command.
要更新npm,运行npm更新npm -g命令。
Also verify this
验证这个
Hope this helps
希望这有助于
#2
7
The only thing that worked for me was (from npm readme)
唯一对我有用的是(从npm readme)
Fancy Windows Install
You can download a zip file from https://npmjs.org/dist/, and unpack it in the same folder where node.exe lives.
您可以从https://npmjs.org/dist/下载zip文件,并将其解压到节点所在的文件夹中。exe的生活。
In my case folder is :
在我的案例中,文件夹是:
C:\Program Files (x86)\nodejs
C:\Program Files (x86)\nodejs
Edit: It seams that newer versions of npm does not exist on address I wrote. I will copy paste instructions from npm git page
编辑:新版本的npm在我写的地址上并不存在。我将复制粘贴说明从npm git页面
You can download a zip file from https://npmjs.org/dist/, and unpack it in the same folder where node.exe lives.
您可以从https://npmjs.org/dist/下载zip文件,并将其解压到节点所在的文件夹中。exe的生活。
The latest version in a zip file is 1.4.12. To upgrade to npm 2, follow the Windows upgrade instructions in the npm Troubleshooting Guide:
zip文件的最新版本是1.4.12。升级到npm 2,按照npm故障排除指南中的Windows升级说明:
https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows
https://github.com/npm/npm/wiki/Troubleshooting upgrading-on-windows
If that's not fancy enough for you, then you can fetch the code with git, and mess with it directly.
如果这对您来说还不够花哨,那么您可以使用git获取代码,并直接对其进行处理。
#3
5
In ubuntu you can upgrade it using
在ubuntu中你可以升级它
sudo npm update npm -g
#4
0
https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows
https://github.com/npm/npm/wiki/Troubleshooting upgrading-on-windows
Option 3: navigate to C:\Program Files (x86)\nodejs with cmd.exe and then run the installation without -g:
选项3:导航到C:\Program Files (x86)\nodejs cmd。exe,然后运行安装,没有-g:
This sovled it for me.
这是为了我。
#5
0
In windows, to install latest version of npm
在windows中,安装最新版本的npm
npm install npm@latest -g
npm安装npm@latest - g
&
&
In ubuntu you can use
在ubuntu中你可以使用
sudo npm install npm@latest -g
安装npm@latest -g
*note: the latest version till sept 12 2016 is (The current stable version of npm is) 3.10.7
*注:截至2016年9月12日的最新版本是(当前稳定版本的npm) 3.10.7。
check version by running on command prompt
在命令提示符下运行,检查版本
npm -v
npm - v
#1
22
Update 2 (03/11/15)
Courtesy: whyleee
礼貌:whyleee
On Windows npm is installed together with node in "Program Files". Use npm install npm -g to install it in "%AppData%\npm" and delete 'npm', 'npm.cmd' files from "C:\Program Files\nodejs" dir (because your PATH is looking there first). After that you can use npm update npm -g in the future
在Windows npm上安装了“程序文件”中的节点。使用npm安装npm -g在“%AppData%\npm”中安装,并删除“npm”、“npm”。来自“C:\程序文件\nodejs”目录的cmd文件(因为您的路径首先在那里查找)。之后,您可以在将来使用npm更新npm -g
According to the docs
根据文档
For windows
(it also worked on Mac for me)
对于windows(它也适用于Mac)
To update npm, run the npm update npm -g
command.
要更新npm,运行npm更新npm -g命令。
Also verify this
验证这个
Hope this helps
希望这有助于
#2
7
The only thing that worked for me was (from npm readme)
唯一对我有用的是(从npm readme)
Fancy Windows Install
You can download a zip file from https://npmjs.org/dist/, and unpack it in the same folder where node.exe lives.
您可以从https://npmjs.org/dist/下载zip文件,并将其解压到节点所在的文件夹中。exe的生活。
In my case folder is :
在我的案例中,文件夹是:
C:\Program Files (x86)\nodejs
C:\Program Files (x86)\nodejs
Edit: It seams that newer versions of npm does not exist on address I wrote. I will copy paste instructions from npm git page
编辑:新版本的npm在我写的地址上并不存在。我将复制粘贴说明从npm git页面
You can download a zip file from https://npmjs.org/dist/, and unpack it in the same folder where node.exe lives.
您可以从https://npmjs.org/dist/下载zip文件,并将其解压到节点所在的文件夹中。exe的生活。
The latest version in a zip file is 1.4.12. To upgrade to npm 2, follow the Windows upgrade instructions in the npm Troubleshooting Guide:
zip文件的最新版本是1.4.12。升级到npm 2,按照npm故障排除指南中的Windows升级说明:
https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows
https://github.com/npm/npm/wiki/Troubleshooting upgrading-on-windows
If that's not fancy enough for you, then you can fetch the code with git, and mess with it directly.
如果这对您来说还不够花哨,那么您可以使用git获取代码,并直接对其进行处理。
#3
5
In ubuntu you can upgrade it using
在ubuntu中你可以升级它
sudo npm update npm -g
#4
0
https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows
https://github.com/npm/npm/wiki/Troubleshooting upgrading-on-windows
Option 3: navigate to C:\Program Files (x86)\nodejs with cmd.exe and then run the installation without -g:
选项3:导航到C:\Program Files (x86)\nodejs cmd。exe,然后运行安装,没有-g:
This sovled it for me.
这是为了我。
#5
0
In windows, to install latest version of npm
在windows中,安装最新版本的npm
npm install npm@latest -g
npm安装npm@latest - g
&
&
In ubuntu you can use
在ubuntu中你可以使用
sudo npm install npm@latest -g
安装npm@latest -g
*note: the latest version till sept 12 2016 is (The current stable version of npm is) 3.10.7
*注:截至2016年9月12日的最新版本是(当前稳定版本的npm) 3.10.7。
check version by running on command prompt
在命令提示符下运行,检查版本
npm -v
npm - v