summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/npm.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass
index fce4c1146f..43228c57d3 100644
--- a/meta/classes/npm.bbclass
+++ b/meta/classes/npm.bbclass
@@ -33,7 +33,11 @@ npm_do_compile() {
33 33
34npm_do_install() { 34npm_do_install() {
35 mkdir -p ${NPM_INSTALLDIR}/ 35 mkdir -p ${NPM_INSTALLDIR}/
36 cp -a ${S}/* ${NPM_INSTALLDIR}/ --no-preserve=ownership 36 npm install --prefix ${D}${prefix} -g --arch=${NPM_ARCH} --target_arch=${NPM_ARCH} --production --no-registry
37 if [ -d ${D}${prefix}/etc ] ; then
38 # This will be empty
39 rmdir ${D}${prefix}/etc
40 fi
37} 41}
38 42
39python populate_packages_prepend () { 43python populate_packages_prepend () {