node-* : specify npm_config_cache directory 2569/head
authorHirokazu MORIKAWA <register@nxhack.com>
Fri, 1 Apr 2016 04:49:16 +0000 (13:49 +0900)
committerHirokazu MORIKAWA <register@nxhack.com>
Fri, 1 Apr 2016 04:49:16 +0000 (13:49 +0900)
lang/node-serialport/Makefile

index c414628e3711edf8702df8d4e4ea7d9a40cf1877..90a9fd7aa9ad123fa8a8b31f3351a36124f3cf8e 100644 (file)
@@ -49,6 +49,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