When writing a question, a Google translator is used.
On the recently 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 set yo -
sudo npm i -g yo
Then I install generator-angular -
sudo npm i -g generator-angular
From the directory you open the terminal and install the generator - angular -
yo angular
And get a lot of mistakes. What for? How to fix it?
Sergio Lopez Mendes - Thanks for your help! I changed the dip to the node_modules directory
sudo chown -R user:group /usr/lib/node_modules/ sudo chown -R `whoami` ~/.npm
And the errors almost disappeared, but still almost ...
npm WARN package.json mytesttwo@0.0.0 No description npm WARN package.json mytesttwo@0.0.0 No repository field. npm WARN package.json mytesttwo@0.0.0 No README data npm WARN package.json mytesttwo@0.0.0 No description npm WARN package.json mytesttwo@0.0.0 No repository field. npm WARN package.json mytesttwo@0.0.0 No README data deprecated grunt-ngmin@0.0.3 : use grunt-ng-annotate instead
...
npm WARN deprecated ngmin@0.4.1 : use ng-annotate instead npm WARN optional dep failed, continuing fsevents@0.2.0
...
npm WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt/node_modules/findup-sync requires lodash@ '~2.4.1' but will load npm WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt/node_modules/lodash, npm WARN unmet dependency which is version 0.9.2 npm WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt/node_modules/grunt-legacy-log requires lodash@ '~2.4.1' but will load npm WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt/node_modules/lodash, npm WARN unmet dependency which is version 0.9.2 npm WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt/node_modules/findup-sync/node_modules/glob requires minimatch@ '0.3' but will load npm WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt/node_modules/minimatch, npm WARN unmet dependency which is version 0.2.14 npm WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt/node_modules/js-yaml/node_modules/argparse requires underscore.string@ '~2.3.1' but will load npm WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt/node_modules/underscore.string, npm WARN unmet dependency which is version 2.2.1 npm WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt-google-cdn/node_modules/google-cdn/node_modules/bower requires semver@ '~2.1.0' but will load npm WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt-google-cdn/node_modules/google-cdn/node_modules/semver, npm WARN unmet dependency which is version 2.2.1 WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/node_modules/decompress requires mkdirp@ '^0.3.5' but will load npm WARN unmet dependency undefined, npm WARN unmet dependency which is version undefined npm WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/decompress requires mkdirp@ '^0.3.5' but will load npm WARN unmet dependency undefined, npm WARN unmet dependency which is version undefined npm WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/node_modules/bin-wrapper/node_modules/download/node_modules/decompress requires mkdirp@ '^0.3.5' but will load npm WARN unmet dependency undefined, which is version undefined npm WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download/node_modules/request/node_modules/form-data requires async@ '~0.9.0' but will load npm WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt-contrib-imagemin/node_modules/async, npm WARN unmet dependency which is version 0.7.0 npm WARN unmet dependency /home/acopalipsis/my-test-two/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/decompress requires mkdirp@ '^0.3.5' but will load npm WARN unmet dependency undefined, npm WARN unmet dependency which is version undefined
And just in case, the whole text
acopalipsis@acopalipsis-pc :~$ cd /home/acopalipsis/my-test-two/ acopalipsis@acopalipsis-pc :~/my-test-two$ yo angular _-----_ | | .--------------------------. |--(o)--| | Welcome to Yeoman, | `---------Β΄ | ladies and gentlemen! | ( _Β΄U`_ ) '--------------------------' /___A___\ | ~ | __'.___.'__ Β΄ ` |Β° Β΄ Y ` Out of the box I include Bootstrap and some AngularJS recommended modules. [?] Would you like to use Sass (with Compass)? No [?] Would you like to include Bootstrap? Yes [?] Which modules would you like to include? angular-animate.js, angular-cookies.js, angular-resource.js, angular-route.js, angular-sanitize.js, angular-touch.js create app/styles/main.css create app/index.html create bower.json identical .bowerrc create package.json create Gruntfile.js invoke angular:common:/usr/lib/node_modules/generator-angular/app/index.js identical .editorconfig identical .gitattributes identical .jshintrc identical .gitignore create test/.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 app/images/yeoman.png invoke angular:main:/usr/lib/node_modules/generator-angular/app/index.js create app/scripts/app.js invoke angular:controller:/usr/lib/node_modules/generator-angular/app/index.js create app/scripts/controllers/main.js create test/spec/controllers/main.js invoke karma:app I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself. invoke angular:route invoke angular:controller:/usr/lib/node_modules/generator-angular/route/index.js create app/scripts/controllers/about.js create test/spec/controllers/about.js invoke angular:view:/usr/lib/node_modules/generator-angular/route/index.js create app/views/about.html create test/karma.conf.js identical .travis.yml npm WARN package.json mytesttwo@0.0.0 No description npm WARN package.json mytesttwo@0.0.0 No repository field. npm WARN package.json mytesttwo@0.0.0 No README data npm WARN package.json mytesttwo@0.0.0 No description npm WARN package.json mytesttwo@0.0.0 No repository field. npm WARN package.json mytesttwo@0.0.0 No README data deprecated grunt-ngmin@0.0.3 : use grunt-ng-annotate instead bower cached git://github.com/angular/bower-angular.git#1.2.16 bower validate 1.2.16 against git://github.com/angular/bower-angular.git#1.2.16 bower cached git://github.com/bestiejs/json3.git#3.3.2 bower validate 3.3.2 against git://github.com/bestiejs/json3.git#~3.3.1 bower cached git://github.com/es-shims/es5-shim.git#3.1.1 bower validate 3.1.1 against git://github.com/es-shims/es5-shim.git#~3.1.0 bower cached git://github.com/twbs/bootstrap.git#3.2.0 bower validate 3.2.0 against git://github.com/twbs/bootstrap.git#~3.2.0 bower cached git://github.com/angular/bower-angular-resource.git#1.2.16 bower validate 1.2.16 against git://github.com/angular/bower-angular-resource.git#1.2.16 bower cached git://github.com/angular/bower-angular-cookies.git#1.2.16 bower validate 1.2.16 against git://github.com/angular/bower-angular-cookies.git#1.2.16 bower cached git://github.com/angular/bower-angular-sanitize.git#1.2.16 bower validate 1.2.16 against git://github.com/angular/bower-angular-sanitize.git#1.2.16 bower cached git://github.com/angular/bower-angular-touch.git#1.2.16 bower validate 1.2.16 against git://github.com/angular/bower-angular-touch.git#1.2.16 bower cached git://github.com/angular/bower-angular-animate.git#1.2.16 bower validate 1.2.16 against git://github.com/angular/bower-angular-animate.git#1.2.16 bower cached git://github.com/angular/bower-angular-route.git#1.2.16 bower validate 1.2.16 against git://github.com/angular/bower-angular-route.git#1.2.16 bower cached git://github.com/angular/bower-angular-mocks.git#1.2.16 bower validate 1.2.16 against git://github.com/angular/bower-angular-mocks.git#1.2.16 bower cached git://github.com/angular/bower-angular-scenario.git#1.2.16 bower validate 1.2.16 against git://github.com/angular/bower-angular-scenario.git#1.2.16 npm WARN deprecated ngmin@0.4.1 : use ng-annotate instead npm WARN optional dep failed, continuing fsevents@0.2.0 bower cached git://github.com/jquery/jquery.git#2.1.1 bower validate 2.1.1 against git://github.com/jquery/jquery.git