【发布时间】:2014-05-09 14:19:26
【问题描述】:
我是 yo 发电机的新手,我正在对其中的许多发电机进行试验。我设置了一个没有问题的角脚手架,我尝试通过设置一个角全栈脚手架来测试 MEAN。不幸的是,我没有 angular 这么幸运,我收到了错误消息“没有找到 Bower 组件”。除了我有 .bowerrc 文件之外,生成器无法创建相关文件夹。
我试图弄清楚发生了什么以及导致该问题的原因。突然之间,我意识到在 c:\folderOne\folderTwo 中设置应用程序时,它的工作方式与 c:\folderOne\folderTwo\folderThree 相反。所以我假设路径的长度正在发生一些事情,同时我认为文件系统级别正在发生一些事情。
我在不同的环境中进行了许多不同的“安装”,并且行为彼此不同。所以,没有水平问题,也没有长度问题。
有没有人遇到过类似的问题?我该怎么做才能稳定?
我的系统有以下特点
node: '0.10.25'
npm: '1.3.24'
yo: '1.1.2'
os: win7
这些是我遵循的步骤
yo angular-fullstack
_-----_
| |
|--(o)--| .--------------------------.
`---------´ | Welcome to Yeoman, |
( _´U`_ ) | ladies and gentlemen! |
/___A___\ '__________________________'
| ~ |
__'.___.'__
´ ` |° ´ Y `
Out of the box I include Bootstrap and some AngularJS recommended modules.
[?] Would you like to use Sass (with Compass)? (Y/n) n
[?] Would you like to include Twitter Bootstrap? (Y/n) y
[?] Which modules would you like to include?
[ ] angular-resource.js
[ ] angular-cookies.js
[ ] angular-sanitize.js
>[ ] angular-route.js
[?] Would you like to include MongoDB with Mongoose? (y/N) n
提前致谢
【问题讨论】:
标签: node.js angularjs yeoman yeoman-generator