簡體   English   中英

如何安裝`yeoman`最新版本?

[英]How to install `yeoman` latest version?

我將node安裝為新版本。 一旦我安裝了,我在cmd檢查的是這樣的:

C:\Users\Mohamed.Arif>node --version && npm --version
v0.10.35
1.4.28

但是,在安裝node, npm我正在嘗試安裝最新的yeoman 在他們的網站上,我注意到npm版本需要v2.1.0+ -我在這里感到困惑。 如何按照他們的要求安裝npm

我僅運行最新版本的node

安裝先決條件

Before installing Yeoman, you will need the following:

Node.js v0.10.x+
npm (which comes bundled with Node) v2.1.0+
git
You can check if you have Node and npm installed by typing:

http://yeoman.io/codelab/setup.html

怎么了 我正在使用windows7

提前致謝!

請參閱如何在Windows上更新npm?

tl; dr-npm -g install npm確實可以工作,但是npm的舊版本仍在您的PATH中。

Option 3: navigate to C:\Program Files (x86)\nodejs with cmd.exe and then run     
the installation without -g:

npm install npm

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM