生活随笔
收集整理的這篇文章主要介紹了
关于gyp ERR node-gyp gyp ERR node -v错误记录
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
重要出錯(cuò)信息
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
網(wǎng)上解決方案
大大沒試過,感覺不太可靠;游覽量還是挺多的,如果可以朋友回復(fù)下,因?yàn)橐彩且环N解決方案
sudo xcode-select -s/Applications/Xcode.app/Contents/Developer
解決方案
錯(cuò)誤分析:node高版本不兼容部分包導(dǎo)致的問題;node-sass包問題
方案一:降級node版本,12版本以下更加主要兼容性好(為啥大大不降級因?yàn)樽钚录夹g(shù)需要高版本的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
記錄問題
開源框架運(yùn)行之版本問題
總結(jié)
以上是生活随笔為你收集整理的关于gyp ERR node-gyp gyp ERR node -v错误记录的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。