用Yeoman和AngularJS做Web应用

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应用)