![](/img/trans.png)
[英]Could not Install the latest version of Yeoman and the Yeoman generator for Office Add-ins globally
[英]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
。
提前致謝!
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.