Skip to content

Commit df2d94f

Browse files
committed
fix: 使用旧的nw-gyp,解决模块编译失败 #144
1 parent 2778d18 commit df2d94f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

res/aur/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ build() {
8989
_log "prepare nw-gyp"
9090
node --version
9191
npm uninstall node-gyp -g
92-
npm install nw-gyp node-gyp -g
92+
npm install nw-gyp@3.6.6 node-gyp -g
9393

9494
# node bin
9595
_log "copy node exectuable"

tools/rebuild-node-modules.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# 参数:
33
# 1 ---- NW版本
44

5-
set -e
5+
set -ex
66

77
notice() {
88
echo -e "\033[36m $1 \033[0m "

tools/setup-wechat-devtools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fi
7979
if [ $CURRENT_STEP == $INSTALL_NPM_CONFIG_SUCCESS ];then
8080
notice "=====安装node-gyp nw-gyp===="
8181
npm uninstall node-gyp -g
82-
npm install node-gyp nw-gyp -g
82+
npm install node-gyp nw-gyp@3.6.6 -g
8383
echo $PATH
8484
node-gyp install
8585
node-gyp list

0 commit comments

Comments
 (0)