Skip to content

Commit

Permalink
classes/npm: add HOME export so that node-gyp keeps it's data out of …
Browse files Browse the repository at this point in the history
…the real HOME

See nodejs/node-gyp#21 for some details
  • Loading branch information
codyps committed Oct 7, 2015
1 parent 38c8673 commit 593f7a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/npm.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ NPM_FLAGS ?= ""
oe_runnpm() {

export NPM_CONFIG_CACHE="${NPM_CACHE_DIR}"
export HOME="${WORKDIR}/npm_home"

[ -n "${http_proxy}" ] && export NPM_CONFIG_PROXY="${http_proxy}"
[ -n "${https_proxy}" ] && export NPM_CONFIG_HTTPS_PROXY="${https_proxy}"
Expand Down Expand Up @@ -45,6 +46,7 @@ NPM_FLAGS_NATIVE ?= ""
oe_runnpm_native() {

export NPM_CONFIG_CACHE="${NPM_CACHE_DIR_NATIVE}"
export HOME="${WORKDIR}/npm_home"

[ -n "${http_proxy}" ] && export NPM_CONFIG_PROXY="${http_proxy}"
[ -n "${https_proxy}" ] && export NPM_CONFIG_HTTPS_PROXY="${https_proxy}"
Expand Down

0 comments on commit 593f7a7

Please sign in to comment.