[MacPorts] #31306: npm: don't build as root
#31306: npm: don't build as root -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ciserlohn@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: haspatch | Port: npm -------------------------------------+-------------------------------------- In r84119 npm was modified to build as root, because otherwise this happens: {{{ ---> Building npm make: Entering directory `/opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_npm/npm/work/npm-1.0.30' scripts/doc-build.sh doc/adduser.md man1/adduser.1 npm ERR! Error: EACCES, Permission denied '/Users/rschmidt/.npm' npm ERR! Report this *entire* log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-@googlegroups.com> npm ERR! npm ERR! System Darwin 9.4.0 npm ERR! command "node" "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_npm/npm/work/npm-1.0.30/cli.js" "install" "ronn" npm ERR! cwd /opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_npm/npm/work/npm-1.0.30 npm ERR! node -v v0.4.12 npm ERR! npm -v 1.0.30 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_npm/npm/work/npm-1.0.30 /npm-debug.log npm not ok make: *** [man1/adduser.1] Error 1 }}} As we see npm is trying to write into my home directory. (Specifically, it is trying to install a couple node modules there that are used to build the manpages.) Here is a patch to no longer build as root and no longer try to install the node modules to the user's home directory. (Instead, they're installed into the workpath.) -- Ticket URL: <https://trac.macports.org/ticket/31306> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31306: npm: don't build as root --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: ciserlohn@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: haspatch Port: npm | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Committed in r84252 (maintainer timeout) -- Ticket URL: <https://trac.macports.org/ticket/31306#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts