It seems you don't have a generator named angular.?

fabian @ fabian-SATELLITE-C660: / var / www / front-end / my-new-project $ yo angular Angular error

You do not have a generator named angular. You can see the available generators using npm search yoman-generator, and then install them using npm install [name]. To see that 0 registered generators are running yo with the option --help. fabian @ fabian-SATELLITE-C660: / var / www / front-end / my-new-project $

+4
source share
2 answers

yo doctor big assistant:

fabian@fabian-SATELLITE-C660:/var/www/front-end/my-new-project$ yo doctor

[Yeoman Doctor] Uh oh, I found potential errors on your machine


[Error] NPM root value is not in your NODE_PATH [info] NODE_PATH = /usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript NPM root = /home/fabian/npm/lib/node_modules

 [Fix] Append the NPM root value to your NODE_PATH variable
   Add this line to your .bashrc
     export NODE_PATH=$NODE_PATH:/home/fabian/npm/lib/node_modules
   Or run this command
     echo "export NODE_PATH=$NODE_PATH:/home/fabian/npm/lib/node_modules" >> ~/.bashrc > && source ~/.bashrc

fabian@fabian-SATELLITE-C660:/var/www/front-end/my-new-project$ echo "export >> NODE_PATH=$NODE_PATH:/home/fabian/npm/lib/node_modules" >> ~/.bashrc > && source ~/.bashrc

fabian@fabian-SATELLITE-C660:/var/www/front-end/my-new-project$ yo doctor [Yeoman Doctor] Everything looks alright!

and now everything works:

fabian@fabian-SATELLITE-C660:/var/www/front-end/my-new-project$ yo angular

    _-----_
   |       |    .--------------------------.
   |--(o)--|    |    Welcome to Yeoman,    |
  `---------´   |   ladies and gentlemen!  |
   ( _´U`_ )    '--------------------------'
   /___A___\    
    |  ~  |     
  __'.___.'__   
´   `  |° ´ Y ` 

Out of the box, I include Bootstrap and some recommended AngularJS modules.

+6
source

, sudo, :

sudo yo angular projectname
0

All Articles