Yeoman发电机总是出现一些错误 [英] Yeoman generator always get some error

查看:87
本文介绍了Yeoman发电机总是出现一些错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用yeoman Web生成器时,尽管它正在工作,但是从整个生成进度来看,它始终会在下面给我一些错误,无论我使用哪种生成器,这些错误始终存在.

When I'm trying using yeoman web generator, although it's working, but looking through the whole generate progress, it always gives me some errors below, no matter what generator I used, they are always there.

npm ERR! phantomjs@1.9.7-6 install: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the phantomjs@1.9.7-6 install script.
npm ERR! This is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls phantomjs
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Applications/MAMP/htdocs/DECO3800/test
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.10
npm ERR! code ELIFECYCLE

npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Applications/MAMP/htdocs/DECO3800/test/npm-debug.log
npm ERR! not ok code 0

只是想知道为什么会这样,以及如何解决它或完全不影响我构建的Web项目?

Just wondering why it would be like that, and how to solve it or it totally no affect to my built web project?

推荐答案

目前,Bitbucket CDN似乎有问题.

There seems to be a problem with the Bitbucket CDN at the moment.

您可以将其用作临时解决方法:

You can use this as a temporary workaround:

PHANTOMJS_CDNURL=http://cnpmjs.org/downloads npm install phantomjs

这篇关于Yeoman发电机总是出现一些错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆