Installing corsproxy makes troubles
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
npm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using Ubuntu 14.10 dev with npm 1.4.21+ds-2 and this ticket is a forwarding from this ticket: https:/
After installing npm and executing "npm install -g corsproxy" I'm getting this output:
npm ERR! Error: EACCES, mkdir '/usr/local/
npm ERR! { [Error: EACCES, mkdir '/usr/local/
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/lib/
npm ERR! '/usr/lib/
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 3.16.0-20-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "corsproxy"
npm ERR! cwd /home/sworddragon
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! path /usr/local/
npm ERR! fstream_path /usr/local/
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/
npm ERR! fstream_stack /usr/lib/
npm ERR! fstream_stack /usr/lib/
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/sworddrag
npm ERR! not ok code 0
Normally I would execute now the last command with sudo but upstream (corsproxy) claims that this should not be needed so I'm assuming this could possibly a bug with npm.