fix: 使用旧的nw-gyp,解决模块编译失败 #144

This commit is contained in:
msojocs 2025-05-17 16:10:40 +08:00
parent 2778d18e9e
commit df2d94f3f2
3 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ build() {
_log "prepare nw-gyp" _log "prepare nw-gyp"
node --version node --version
npm uninstall node-gyp -g npm uninstall node-gyp -g
npm install nw-gyp node-gyp -g npm install nw-gyp@3.6.6 node-gyp -g
# node bin # node bin
_log "copy node exectuable" _log "copy node exectuable"

View File

@ -2,7 +2,7 @@
# 参数: # 参数:
# 1 ---- NW版本 # 1 ---- NW版本
set -e set -ex
notice() { notice() {
echo -e "\033[36m $1 \033[0m " echo -e "\033[36m $1 \033[0m "

View File

@ -79,7 +79,7 @@ fi
if [ $CURRENT_STEP == $INSTALL_NPM_CONFIG_SUCCESS ];then if [ $CURRENT_STEP == $INSTALL_NPM_CONFIG_SUCCESS ];then
notice "=====安装node-gyp nw-gyp====" notice "=====安装node-gyp nw-gyp===="
npm uninstall node-gyp -g npm uninstall node-gyp -g
npm install node-gyp nw-gyp -g npm install node-gyp nw-gyp@3.6.6 -g
echo $PATH echo $PATH
node-gyp install node-gyp install
node-gyp list node-gyp list