角脚本约曼角缺失所产生的应用程序 [英] Angular scripts missing in Yeoman-Angular generated app
问题描述
我已经生成使用约曼角生成一个应用程序,但angular.js等角度文件从项目丢失。我可以看到在bower.json文件这些依赖如下:
{
名:MI-组合,
版本:0.0.0
依赖:{
角度:1.2.6,
json3:〜3.2.6
ES5-垫片:〜2.1.0
jQuery的:〜1.10.2
引导:〜3.0.3
角饼干:1.2.6
角的sanitize:1.2.6
},
devDependencies:{
角嘲笑:1.2.6,
角情景:1.2.6
}
}
I have generated an app using Yeoman-Angular Generator, but the angular.js and other Angular files are missing from the project. I can see these dependencies in the bower.json file as follows: { "name": "mi-portfolio", "version": "0.0.0", "dependencies": { "angular": "1.2.6", "json3": "~3.2.6", "es5-shim": "~2.1.0", "jquery": "~1.10.2", "bootstrap": "~3.0.3", "angular-cookies": "1.2.6", "angular-sanitize": "1.2.6" }, "devDependencies": { "angular-mocks": "1.2.6", "angular-scenario": "1.2.6" } }
不过,在JS文件本身不可用。所以,我在运行应用程序时得到'角没有定义的错误。我跑的命令,自耕农角生成的文档中给出。有什么事,我在这里丢失?
But, the JS files themselves aren't available. So, I get the 'angular is not defined' error when running the app. I ran the commands as given in the Yeoman-Angular Generator's documentation. Is there something I'm missing here?
推荐答案
尝试运行亭子安装
,有时这种运行约曼的时候,所以你手动的宝贝尝试失败。
Try running bower install
, sometimes this fails when running Yeoman so you've gotta attempt manually.
这篇关于角脚本约曼角缺失所产生的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!