用Yeoman和AngularJS做Web应用

作者: 玄月府的小妖在debug | 来源:发表于2017-03-21 14:23 被阅读118次

1.安装node
2.安装git
3.npm install --global yo bower grunt-cli
4.npm install -g generator-angular
5.yo angular
6.grunt serve
错误:[Error: Cannot find where you keep your Bower packages. )
解决:在git bash下执行
bower install

问题:
grunt test
Error during loading "karma-phantomjs-launcher" plugin:
Path must be a string. Received null

待解决

npm install grunt-karma karma karma-phantomjs-launcher karma-jasmine jasmine-core phantomjs-prebuilt --save-dev 

2.报错

: Cannot find module 'D:\node-v6.10.0-win-x64\node_modules\phantomjs-prebuilt\bin\phantomjs'

解决
下载phantomjs.exe
放在 'D:\node-v6.10.0-win-x64\ 目录下

参考文档
1.http://www.cnblogs.com/Look_Sun/p/4598045.html
2.http://blog.jobbole.com/65399/

相关文章

网友评论

    本文标题:用Yeoman和AngularJS做Web应用

    本文链接:https://www.haomeiwen.com/subject/sqhgnttx.html