moueza / site-internet-moueza-peter-as

Angular JS
0 stars 0 forks source link

Karma generator missing #1

Closed moueza closed 5 years ago

moueza commented 5 years ago

create app\scripts\controllers\main.js create test\spec\controllers\main.js Error angular

You don't seem to have a generator with the name “karma:app” installed. But help is on the way:

You can see available generators via npm search yeoman-generator or via http://yeoman.io/generators/. Install them with npm install generator-karma:app.

To see all your installed generators run yo without any arguments. Adding the --help option will also show subgenerators.

If yo cannot find the generator, run yo doctor to troubleshoot your system.

D:\POUB\site-internet-moueza-peter-as\workspace\app-peter-moueza>npm install -g generator-karma npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 npm WARN deprecated samsam@1.3.0: This package has been deprecated in favour of @sinonjs/samsam

spawn-sync@1.0.15 postinstall C:\Users\seeqlee\AppData\Roaming\npm\node_modules\generator-karma\node_modules\spawn-sync node postinstall

moueza commented 5 years ago

npm install -g generator-karma

moueza commented 5 years ago

cf https://openclassrooms.com/fr/courses/2516051-developpez-vos-applications-web-avec-angularjs/2516071-installez-votre-environnement

moueza commented 5 years ago

Then yo angular

moueza commented 5 years ago

npm audit fix