坚持使用Bower安装依赖项(新基础) [英] Stuck on installing dependencies with bower (foundation new)
问题描述
我按照本指南在Windows 8.1 PC上安装了基础。
I followed this guide to install foundation on my Windows 8.1 PC.
http://foundation.zurb.com/forum/posts/11597-how-to-install-grunt-and- libsass-on-windows
当我进入步骤16时,我的cmd提示停留在使用Bower安装依赖项...上。
When I get to Step 16 my cmd prompt gets stuck on "Installing dependencies with bower...".
我以前在计算机上进行过基础工作,但最近不得不重新格式化它。谢谢你的帮助。
I have had foundation work on my computer before but I recently had to reformat it. Thanks for any help.
推荐答案
我花了很多时间尝试解决此问题...并且我有解决方案! :)我认为在node.js和npm版本之间存在问题。我注意到,当我拥有最新的node.js时,在CMD中启动 npm ERR!
时没有问题! npm install -g bower
,然后运行 foundation new project_name --libsass
我注意到安装依赖项与Bower ...过程一直在进行……。
I spent a lot of time trying to fix this problem... and I have solution! :) I think it's a problem between node.js and npm versions. I noticed that when I have newest node.js I don't have problem with npm ERR!
when I start in CMD npm install -g bower
and then run foundation new project_name --libsass
I notice the "Installing dependencies with bower..." process goes on and on ....
但是,当我安装node.js版本0.10.x并创建一个新的Foundation项目时,使用Bower安装依赖项...正常运行,但是我有一个 npm ERR!
(以及更早的时候键入 npm install -g bower)。
However, when I installed node.js version 0.10.x and create a new Foundation project, the "Installing dependencies with bower..." works properly but I have an npm ERR!
(and earlier when typing "npm install -g bower").
结论:
- 如果您的node.js版本> 0.10.x,请将其卸载并重新启动计算机。
- 安装node.js版本0.10.x(我具有node-v0.10.9-x86)并重新启动计算机。
- 将npm升级到最新版本。好的教程如何在这里执行:
https://github.com/npm/npm / wiki /故障排除在Windows上升级部分,然后重新启动计算机。 - 检查您的npm版本:打开CMD并输入 npm -v(如果看到npm) 2.5.1或更高版本(以供将来使用)成功更新了npm ...
- 按原样安装其他所有软件:
http://foundation.zurb.com/forum/posts/11597-how-to -install-grunt-and-libsass-on-windows
- If you have node.js version > 0.10.x uninstall it and restart computer.
- Install node.js version 0.10.x (I have node-v0.10.9-x86) and restart computer.
- Upgrade npm to latest version. Good tutorial how to do it here: https://github.com/npm/npm/wiki/Troubleshooting in section "Upgrading on Windows" and restart computer.
- Check your npm version: open CMD and typing it "npm -v", if you see npm 2.5.1 or later (for future) you successfull updated npm...
- Install everything else as-per: http://foundation.zurb.com/forum/posts/11597-how-to-install-grunt-and-libsass-on-windows
希望它会有所帮助!
Arcady
Hope it helps! Arcady
P.S。
我有Windows 64位操作系统,我安装了rubyinstaller-1.9.3-p551和最新的Git版本...
P.S. I have Windows 64-bit, I installed rubyinstaller-1.9.3-p551, and newest Git version...
这篇关于坚持使用Bower安装依赖项(新基础)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!