mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-07 00:02:14 +08:00
fix: 使用旧的nw-gyp,解决模块编译失败 #144
This commit is contained in:
parent
2778d18e9e
commit
df2d94f3f2
@ -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"
|
||||||
|
@ -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 "
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user