Angular scripts missing in Yeoman-Angular generated app

久未见 提交于 2020-01-04 02:54:38

问题


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" } }

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?


回答1:


Try running bower install, sometimes this fails when running Yeoman so you've gotta attempt manually.



来源:https://stackoverflow.com/questions/21189905/angular-scripts-missing-in-yeoman-angular-generated-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!