Browse Source

Merge pull request #2569 from nxhack/node-npm-cache

node-* : specify npm_config_cache directory
lilik-openwrt-22.03
John Crispin 8 years ago
parent
commit
bbbef2847b
4 changed files with 4 additions and 0 deletions
  1. +1
    -0
      lang/node-arduino-firmata/Makefile
  2. +1
    -0
      lang/node-cylon/Makefile
  3. +1
    -0
      lang/node-hid/Makefile
  4. +1
    -0
      lang/node-serialport/Makefile

+ 1
- 0
lang/node-arduino-firmata/Makefile View 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


+ 1
- 0
lang/node-cylon/Makefile View File

@ -67,6 +67,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


+ 1
- 0
lang/node-hid/Makefile View 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


+ 1
- 0
lang/node-serialport/Makefile View 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


Loading…
Cancel
Save