diff options
-rw-r--r-- | meta/classes/npm.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass index 1c778a7637..c5380405af 100644 --- a/meta/classes/npm.bbclass +++ b/meta/classes/npm.bbclass | |||
@@ -32,6 +32,9 @@ npm_do_compile() { | |||
32 | } | 32 | } |
33 | 33 | ||
34 | npm_do_install() { | 34 | npm_do_install() { |
35 | # changing the home directory to the working directory, the .npmrc will | ||
36 | # be created in this directory | ||
37 | export HOME=${WORKDIR} | ||
35 | mkdir -p ${NPM_INSTALLDIR}/ | 38 | mkdir -p ${NPM_INSTALLDIR}/ |
36 | npm install --prefix ${D}${prefix} -g --arch=${NPM_ARCH} --target_arch=${NPM_ARCH} --production --no-registry | 39 | npm install --prefix ${D}${prefix} -g --arch=${NPM_ARCH} --target_arch=${NPM_ARCH} --production --no-registry |
37 | if [ -d ${D}${prefix}/etc ] ; then | 40 | if [ -d ${D}${prefix}/etc ] ; then |