Closed rchrdnsh closed 9 years ago
If you scroll up the generator will tell you that it's running npm install
for you.
Try upgrading npm and run npm cache clean
.
I tried that once, but it did not work, although I may have done it incorrectly. I will try it again and report back to you if the issue is resolved. :-)
ok, I ran npm update
and npm cache clean
then generated a new project and it worked. Thank you Sindre :-)
I am getting somewhat similar issue.
I ran npm update
and npm cache clean
but still getting similar error.
goldenfermi (master #) ~ $ npm install -g generator-polymer
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/generator-polymer'
npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/generator-polymer']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/generator-polymer',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/generator-polymer',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',
npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53',
npm ERR! 'Object.oncomplete (fs.js:108:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "generator-polymer"
npm ERR! cwd /Users/goldenfermi
npm ERR! node -v v0.10.34
npm ERR! npm -v 1.4.28
npm ERR! path /usr/local/lib/node_modules/generator-polymer
npm ERR! fstream_path /usr/local/lib/node_modules/generator-polymer
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/usr/local/lib/node_modules/generator-polymer'
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53
npm ERR! fstream_stack Object.oncomplete (fs.js:108:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/goldenfermi/npm-debug.log
npm ERR! not ok code 0
take a look: http://stackoverflow.com/questions/16151018/npm-throws-error-without-sudo or the problem was only raised on generator-polymer?
When I try to create a new polymer-generator project i get this code at the end of the process:
I do not know what commands that I am supposed to run again. I tried running sudo yo polymer, but the same issue arrises.
Not sure what to do here :-(