bevry/docpad — Issue #150: arch linux forces me to run docpad as root
Author: originalsurfmex
Created: 2012-03-05 00:12:37+00:00
State: open

npm is in root and so are its modules apparently. i am using the nodejs package from 'community'.

the problem with this is that i cannot install modules such as docpad without using sudo. this then means that docpad itself only works with sudo, which results in websites that i create all having root permissions. is there a way around this?

it would be best if i could do an

npm -g install docpuad

as user and not as root. if i do it as user i get the following:

[user@arch]$ npm install -g docpad

npm ERR! Error: EPERM, Operation not permitted
npm ERR! at /usr/lib/node_modules/npm/lib/utils/uid-number.js:42:18
npm ERR! at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/exec.js:54:5)
npm ERR! at ChildProcess.emit (events.js:70:17)
npm ERR! at maybeExit (child_process.js:360:16)
npm ERR! at Process.onexit (child_process.js:396:5)
npm ERR!
npm ERR! Please try running this command again as root/Administrator.