Installing corsproxy makes troubles

Bug #1378009 reported by Removed by request
6
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://github.com/gr2m/CORS-Proxy/issues/26

After installing npm and executing "npm install -g corsproxy" I'm getting this output:

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/corsproxy',
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:37: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 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/lib/node_modules
npm ERR! fstream_path /usr/local/lib/node_modules/corsproxy
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:37: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/sworddragon/npm-debug.log
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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.