$ npm install -g express-generator npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules' npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR! path: '/usr/local/lib/node_modules', npm ERR! fstream_type: 'Directory', npm ERR! fstream_path: '/usr/local/lib/node_modules/express-generator', npm ERR! fstream_class: 'DirWriter', npm ERR! fstream_stack: npm ERR! [ '/usr/lib/nodejs/fstream/lib/writer.js:171:23', npm ERR! '/usr/lib/nodejs/mkdirp/index.js:46:53', npm ERR! 'Object.oncomplete (fs.js:107:15)' ] } npm ERR! npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 4.9.35-v7+ npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "express-generator" npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules npm ERR! fstream_path /usr/local/lib/node_modules/express-generator 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' npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23 npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:46:53 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pi/npm-debug.log npm ERR! not ok code 0 |