日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

关于gyp ERR node-gyp gyp ERR node -v错误记录

發布時間:2023/12/29 编程问答 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 关于gyp ERR node-gyp gyp ERR node -v错误记录 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

重要出錯信息

gyp ERR! node -v v14.15.3
gyp ERR! node-gyp -v v5.1.0

fatal error: too many errors emitted, stopping now [-ferror-limit=] 1 warning and 20 errors generated. make: *** [Release/obj.target/fse/fsevents.o] Error 1 gypmake: *** [Release/obj.target/fse/fsevents.o] Error 1ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) gyp ERR! System Darwin 21.1.0 gyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/hanshao/Documents/coding/toB-Frame/element/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/Users/hanshao/Documents/coding/toB-Frame/element/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64\" \"--napi_version=7\" \"--node_abi_napi=napi\" gyp ERR! cwd /Users/hanshao/Documents/coding/toB-Frame/element/node_modules/fsevents gyp ERR! node -v v14.15.3 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2

網上解決方案


大大沒試過,感覺不太可靠;游覽量還是挺多的,如果可以朋友回復下,因為也是一種解決方案

sudo xcode-select -s/Applications/Xcode.app/Contents/Developer

解決方案

錯誤分析:node高版本不兼容部分包導致的問題;node-sass包問題

方案一:降級node版本,12版本以下更加主要兼容性好(為啥大大不降級因為最新技術需要高版本的node)
方案二:指定下包鏡像源即可解決及降低nodeSass版本包

//一,切換淘寶鏡像 npm install --registry=http://registry.npm.taobao.org 或 npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass //二,拉包 npm i node-sass@4

記錄問題

開源框架運行之版本問題

總結

以上是生活随笔為你收集整理的关于gyp ERR node-gyp gyp ERR node -v错误记录的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。