Questions tagged [yeoman-generator-angular]

Yeoman generator for AngularJS lets you quickly set up a project with sensible defaults and best practices.

Yeoman generator for AngularJS lets you quickly set up a project with sensible defaults and best practices.

Available generators:

  • angular (akaangular:app`)
  • angular:controller
  • angular:directive
  • angular:filter
  • angular:route
  • angular:service
  • angular:provider
  • angular:factory
  • angular:value
  • angular:constant
  • angular:decorator
  • angular:view

Reference: Github project page

293 questions
26
votes
5 answers

Yeoman and Bower not adding Bootstrap CSS (AngularJS generator)

I am following along a codelab on the Yeoman webpage, and so far I've managed to follow along (with a few major hiccups getting my development environment going, but now it doesn't return any errors). So I made my project folder and ran yo, selected…
18
votes
3 answers

Getting npm: command not found. How do I reinstall NPM when Node is already installed? Where did NPM go?

I'm starting Learn to Build Modern Web Apps with the AngularJS Tutorial and running into issues very early. I have node installed: /path/ang-news node -v v0.10.26 I was using NPM earlier but was running into trouble with Yeoman. I've repeated…
Rotimi
  • 303
  • 1
  • 2
  • 8
16
votes
6 answers

yo angular generates files in wrong path ( home directory )

yo angular generates the files in my home directory and I don't know why. I did the following: ppa for node curl -sL https://deb.nodesource.com/setup | sudo bash - then install node sudo apt-get install -y nodejs create a symlink sudo ln -s…
svenhornberg
  • 14,376
  • 9
  • 40
  • 56
15
votes
1 answer

generator-angular - You don't seem to have generator with the name angular installed

So I wanted to take a look at the latest generator, seeing as they use gulp now. Anyhow, after updating everything twice, reinstalling node, deleting npm-cache and so on, when I do yo angular the following happens: The generator starts and asks me…
Khufu
  • 226
  • 1
  • 2
  • 7
14
votes
4 answers

Yeoman | Grunt | No such file or directory - bower.json

Using 'yo angular' I created AngularJS seed application. Trying to run the application using 'grunt serve' is giving this error:- >grunt serve Loading "imagemin.js" tasks...ERROR >> Error: Cannot find module 'imagemin-pngquant' Running "serve"…
Kumar Sambhav
  • 7,503
  • 15
  • 63
  • 86
11
votes
8 answers

WARNING: Tried to load angular more than once. when I include JQuery

I am building an yeoman app with an angular-generator. The js libraries included in my index.html file are:
Agustin Lopez
  • 1,355
  • 4
  • 18
  • 34
10
votes
2 answers

Grunt, copy html files to scripts folder on build

I use the angular-generator in yeoman. In gruntfile.js, every html file in /app/views get copied to dist/views. But I like to keep my directive templates in the same folder as the directive itself.…
Joe
  • 4,274
  • 32
  • 95
  • 175
10
votes
5 answers

Permission denied while installing Yo

I'm trying to set up yo to use the angular generator for a project. I am following the steps detailled here: http://yeoman.io/learning/index.html I already have Node.js and NPM installed. But when I use the command: sudo npm install -g yo bower…
Vincent Montalieu
  • 333
  • 2
  • 4
  • 10
9
votes
2 answers

Jasmine + AngularJS: How to test $rootScope.$broadcast being called with arguments?

I am trying to write a unit test that verifies that $rootScope.$broadcast('myApiPlay', { action : 'play' }); is called. Here is the myapi.js angular.module('myApp').factory('MyApi', function ($rootScope) { var api = {}; api.play = function()…
8
votes
1 answer

Deploy AngularJS app on tomcat

I created an AngularJS app with the yeoman angular generator. Now I want to host it using Apache tomcat. I already ran "grunt build" and have all my assets ready in the "dist"-folder. Is there a way to create a .war-file or can I just copy the files…
Martin
  • 896
  • 1
  • 7
  • 22
8
votes
1 answer

yeoman split angular app by modules

I'd like to know if possible to separate a yeoman app by modules (like MEANJS generator) basically with the following structure: Module 1 views controllers services css config module1.js Module…
pedrommuller
  • 15,741
  • 10
  • 76
  • 126
7
votes
3 answers

Error when using yeoman to generate angular app: unhandled Template render error

I want to use yeoman to generate an angular app structure, but an error stopped me. yo-->Angular Bootstrap-->more options--> error occurs: Possibly unhandled Template render error: (unknown path) [Line 3, Column 90] expected variable end at…
creeper
  • 499
  • 2
  • 17
7
votes
3 answers

grunt serve from a fresh Yeoman install returns - Warning: Task "serve" not found

After running yo angular and then cd'ing into the application's root folder (at same level as the app folder, gruntfile, package.json etc) I try grunt serve and I get the above error. Grunt won't start a server for me. I have searched all over but…
bitfidget
  • 357
  • 2
  • 3
  • 12
7
votes
2 answers

Yeoman.io problems installing generator-angular

When writing question used the Google translator. On a freshly installed ubuntu 14.04 set nodejs - sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install python-software-properties python g++ make nodejs Then…
7
votes
2 answers

generator-angular module is not creating a new project

I am new to yeoman set of tools. I run following commands in Ubuntu 12 $ npm install -g yo $ npm install -g generator-webapp $ yo webapp I am able to create a web app project. After that I tried to create an angular project. First I run…
mathlearner
  • 7,509
  • 31
  • 126
  • 189
1
2 3
19 20