﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	parents
5083	npm wants to install to /home/mediagoblin, but the mg system account doesn't use a home dir	Jim Campbell		"We specifically don't create a home directory for the 'mediagoblin' system account as part of the setup process, but npm wants to install to the mediagoblin user home dir:


{{{
checking for virtualenv... virtualenv
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mediagoblin/_version.py
./devtools/update_extlib.sh
which: no bower in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
Bower not found, installing via npm!
npm ERR! Error: EACCES, mkdir '/home/mediagoblin'
npm ERR!  { [Error: EACCES, mkdir '/home/mediagoblin'] errno: 3, code: 'EACCES', path: '/home/mediagoblin' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 3.10.0-229.1.2.el7.x86_64
npm ERR! command ""node"" ""/usr/bin/npm"" ""install"" ""bower""
npm ERR! cwd /srv/mediagoblin.chicagolug.org/mediagoblin
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.3.6
npm ERR! path /home/mediagoblin
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/home/mediagoblin'
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /srv/mediagoblin.chicagolug.org/mediagoblin/npm-debug.log
npm ERR! not ok code 0
make: *** [extlib] Error 3
}}}

Is there an alternate install location for this part of the process (e.g., somewhere in /srv/mediagoblin.example.org/bin ) or should we create a mediagoblin home directory?

I'm setting this as a 0.8 milestone bug because I think we need to decide which approach to take & document things appropriately in the deployment docs."	defect	closed	major	0.8.0	programming	fixed	npm		
