mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
fix: 使用旧的nw-gyp,解决模块编译失败 #144
This commit is contained in:
parent
2778d18e9e
commit
df2d94f3f2
@ -89,7 +89,7 @@ build() {
|
||||
_log "prepare nw-gyp"
|
||||
node --version
|
||||
npm uninstall node-gyp -g
|
||||
npm install nw-gyp node-gyp -g
|
||||
npm install nw-gyp@3.6.6 node-gyp -g
|
||||
|
||||
# node bin
|
||||
_log "copy node exectuable"
|
||||
|
@ -2,7 +2,7 @@
|
||||
# 参数:
|
||||
# 1 ---- NW版本
|
||||
|
||||
set -e
|
||||
set -ex
|
||||
|
||||
notice() {
|
||||
echo -e "\033[36m $1 \033[0m "
|
||||
|
@ -79,7 +79,7 @@ fi
|
||||
if [ $CURRENT_STEP == $INSTALL_NPM_CONFIG_SUCCESS ];then
|
||||
notice "=====安装node-gyp nw-gyp===="
|
||||
npm uninstall node-gyp -g
|
||||
npm install node-gyp nw-gyp -g
|
||||
npm install node-gyp nw-gyp@3.6.6 -g
|
||||
echo $PATH
|
||||
node-gyp install
|
||||
node-gyp list
|
||||
|
Loading…
x
Reference in New Issue
Block a user