node.js - Lots of "npm ERR!"s when running `yo angular` -


I am trying to work in Yemen but it is for one after the wall. Thanks to God Stack Overflow and you are helping all good people. Anyway ...

I'm trying to run yo angular but I'm getting a group of npm ERR! with:

  npm ERR! Please try running this command again as root / administrator.  

Since I can not use sudo yo, I followed most accepted advice and changed some configurations to fix this problem. Were based on

But I'm still getting the same error!

This is my yo angular

> This is my yo angular

it My yo angular

How do I fix these errors?

Thank you very much in advance.


Update:

went as root error Ran away, although I still have a new directory in yo angular after these errors are I i cat -n stderr.log | I'm displaying errors with I Grep -ir err (It's strange that npm-debug.log was not generated at this time):

  218 npm ERR! Error: ENOENT, lstat '/home/ubuntu/youtube_5/node_modules/grunt/lib/grunt/task.js' 219 nmp ERR! If you need help, then you can report this whole * log, 220 NPM ERR! NPM and Node versions, including: 221 NPM ERR! & Lt; Http: //github.com/npm/npm/issues> 223 NPM ERR! System Linux 3.2.0-54-Virtual 224 NMP ERR! Command "node" "/ usr / local / bin / npm" "install" "blanket-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "-save-dev" 225 npm ERR! Cwd / home / ubuntu / youtube_5 226 NPM ERR! Node-V v0.10.25 227 NPM ERR! NPM-V 1.4.2 228 NPM ERR! Path /home/ubuntu/youtube_5/node_modules/grunt/lib/grunt/task.js 229 NMP ERR! Fstream_path /home/ubuntu/youtube_5/node_modules/grunt/lib/grunt/task.js 230 NMP ERR! Fstream_type file 231 npm ERR! Fstream_class FileWriter 232 NPM ERR! Code Annot 233 NPM ERR! Error 34 344 NMP ERR! Fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26 235 NMP ERR! Fstream_stack object. Full (fs.js: 107: 15) 1102 nmp ERR! 1103 NMR ERR! Additional logging details can be found in: 1104 NPM ERR! /home/ubuntu/youtube_5/npm-debug.log 1105 NMP ERR! Not OK Code 0  

Update 2: After some, I resolved this new ENOENT problem with the sudo npm cache clean .

Thanks StackOverflow

Error 80: EACCES, mkdir '/ Home / ubuntu / tmp / npm-26883 -sBYbfAy6 '

OK, so your / home / ubuntu / tmp has incorrect permissions. I happened because you have sudo npm install Did in the past, and NPM does not handle this way adequately.

Run sudo chown Ubuntu / home / ubuntu / tmp - RV To fix this problem, or just delete that folder.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -