久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      npm node gyp失敗怎么辦

      npm node gyp失敗是因為“node-gyp.js”跟“Node.js”版本不匹配,其解決辦法:1、通過“npm cache clean -f”清除node緩存;2、通過“npm install -g n”安裝n模塊;3、通過“n v12.21.0”命令安裝“node v12.21.0”版本即可。

      npm node gyp失敗怎么辦

      本教程操作環(huán)境:Windows10系統(tǒng)、node v12.21.0版、Dell G3電腦。

      npm node gyp失敗怎么辦?

      npm install報node-gyp相關(guān)錯誤

      我在構(gòu)建一個vue項目時,報了node-gyp構(gòu)建相關(guān)錯誤,錯誤信息如下

      1 error generated. make: *** [Release/obj.target/binding/src/binding.o] Error 1 gyp ERR! build error  gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack     at ChildProcess.onExit (/Users/xingxin/code_sxf2/nft-server/nft-ui/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack     at ChildProcess.emit (node:events:527:28) gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) gyp ERR! System Darwin 20.4.0 gyp ERR! command "/usr/local/bin/node" "/Users/xingxin/code_sxf2/nft-server/nft-ui/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /Users/xingxin/code_sxf2/nft-server/nft-ui/node_modules/node-sass gyp ERR! node -v v16.15.1
      登錄后復(fù)制

      經(jīng)過各種嘗試才發(fā)現(xiàn)

      原因是node-gyp.js跟我的Node.js版本不匹配,我的Node版本太高了

      經(jīng)過嘗試發(fā)現(xiàn)Node降級到 v12.21.0版本后,構(gòu)建成功。

      降級操作相關(guān)命令:

      # 查看當(dāng)前node版本 node –v # 清除node緩存 npm cache clean -f # 安裝n模塊 npm install -g n # 安裝v12.21.0版本 n v12.21.0 # 查看當(dāng)前node版本 node –v
      登錄后復(fù)制

      推薦學(xué)習(xí):《node.js視頻教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號