node-* : specify npm_config_cache directory
[feed/packages.git] / lang / node-arduino-firmata / Makefile
index b88b2c43ef28ab9a686130824a922d4d0ea008bc..a21b23348767a7fc48ed30ffc3d0871fbe817df6 100644 (file)
@@ -52,6 +52,7 @@ define Build/Compile
        $(MAKE_FLAGS) \
        npm_config_arch=$(CONFIG_ARCH) \
        npm_config_nodedir=$(BUILD_DIR)/node-v$(PKG_NODE_VERSION)/ \
+       npm_config_cache=$(BUILD_DIR)/node-v$(PKG_NODE_VERSION)/npm-cache \
        PREFIX="$(PKG_INSTALL_DIR)/usr/" \
        $(STAGING_DIR)/host/bin/npm install -g $(PKG_BUILD_DIR)
 endef