generator-angular icon indicating copy to clipboard operation
generator-angular copied to clipboard

Error running yo angular

Open viktorlund opened this issue 12 years ago • 13 comments

[?] Would you like to use Sass (with Compass)? Yes [?] Would you like to include Twitter Bootstrap? Yes [?] Would you like to use the Sass version of Twitter Bootstrap? Yes [?] Which modules would you like to include? angular-resource.js, angular-cookies.js, angular-sanitize.js, angular-route .js create app/styles/main.scss create app\index.html create bower.json create package.json create Gruntfile.js create app\images\yeoman.png invoke angular:common:C:\Users\vilu\AppData\Roaming\npm\node_modules\generator-angular\app\index.js create .bowerrc create .editorconfig create .gitattributes create .jshintrc create app.buildignore create app.htaccess create app\404.html create app\favicon.ico create app\robots.txt create app\views\main.html create test.jshintrc create test\runner.html create .gitignore invoke angular:main:C:\Users\vilu\AppData\Roaming\npm\node_modules\generator-angular\app\index.js create app\scripts\app.js invoke angular:controller:C:\Users\vilu\AppData\Roaming\npm\node_modules\generator-angular\app\index.js create app\scripts\controllers\main.js create test\spec\controllers\main.js

I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try runni ng the command yourself.

invoke karma:app create karma.conf.js create karma-e2e.conf.js

C:\Users\vilu\AppData\Roaming\npm\node_modules\generator-angular\node_modules\wiredep\lib\detect-dependencies.js:55 if (_.isString(componentConfigFile.main)) { ^ TypeError: Cannot read property 'main' of undefined at findMainFiles (C:\Users\vilu\AppData\Roaming\npm\node_modules\generator-angular\node_modules\wiredep\lib\detect-d ependencies.js:55:37) at C:\Users\vilu\AppData\Roaming\npm\node_modules\generator-angular\node_modules\wiredep\lib\detect-dependencies.js: 101:17 at forOwn (C:\Users\vilu\AppData\Roaming\npm\node_modules\generator-angular\node_modules\wiredep\node_modules\lodash \dist\lodash.js:1301:15) at Function.forEach (C:\Users\vilu\AppData\Roaming\npm\node_modules\generator-angular\node_modules\wiredep\node_modu les\lodash\dist\lodash.js:2595:9) at detect (C:\Users\vilu\AppData\Roaming\npm\node_modules\generator-angular\node_modules\wiredep\lib\detect-dependen cies.js:290:5) at module.exports (C:\Users\vilu\AppData\Roaming\npm\node_modules\generator-angular\node_modules\wiredep\bin\wiredep :34:40) at Generator._injectDependencies (C:\Users\vilu\AppData\Roaming\npm\node_modules\generator-angular\app\index.js:286: 5) at C:\Users\vilu\AppData\Roaming\npm\node_modules\generator-angular\node_modules\yeoman-generator\node_modules\async \lib\async.js:229:13 at C:\Users\vilu\AppData\Roaming\npm\node_modules\generator-angular\node_modules\yeoman-generator\node_modules\async \lib\async.js:110:21 at C:\Users\vilu\AppData\Roaming\npm\node_modules\generator-angular\node_modules\yeoman-generator\node_modules\async \lib\async.js:24:16

viktorlund avatar Dec 29 '13 18:12 viktorlund

Did you find a solution for this?

macrigiuseppe avatar Jan 17 '14 00:01 macrigiuseppe

I'm also experiencing this issue. Any insight?

YO 1.1.2 generator-angular 0.7.1

albertboada avatar Jan 19 '14 17:01 albertboada

@macrigiuseppe, pretty crazy but error vanished after doing npm cache clean, if that makes may sense.

albertboada avatar Jan 19 '14 18:01 albertboada

Is there a solution to this, as npm cache clean isn't working...

chirdeeptomar avatar Jan 21 '14 12:01 chirdeeptomar

Try running yo and then choosing the Update my generators (or something like this) option. I can't think of anything else I did before realising it had been magically fixed for me. It probably wasn't this, but worth trying, I guess...

albertboada avatar Jan 21 '14 12:01 albertboada

Thanks @albertboada but still the same issue. [email protected] node_modules/grunt-karma └── [email protected] ([email protected], [email protected])

comes here and just dies.

chirdeeptomar avatar Jan 21 '14 12:01 chirdeeptomar

have you tried removing yo and the generator and other npm things related to this and then reinstalling?

eddiemonge avatar Jan 21 '14 18:01 eddiemonge

I had the same issue. It was a Git problem. I installed it but it was not yet in the path variable. Just close the bash, close your session, come back and do this command in your folder project: bower install npm install hope it help !

qdesmedt avatar Feb 21 '14 21:02 qdesmedt

I also had this issue. Anyone can help to fix this issue?

smallg avatar Aug 25 '14 05:08 smallg

same error to me...

crstn210 avatar Aug 25 '14 08:08 crstn210

Anyone coming across this issue, make sure you have bower installed globally npm install -g bower

I use nvm, and installed the latest version of node but forgot to re-install bower and was getting this error. After installing bower globally it went away.

dgarlitt avatar Oct 17 '14 06:10 dgarlitt

i solved doing bower update

avenda avatar Dec 18 '14 03:12 avenda

bower update works.

shank318 avatar Apr 13 '15 01:04 shank318