为了账号安全,请及时绑定邮箱和手机立即绑定

npm install 失败了

gyp ERR! build error 

gypgyp 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!ERR!  stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)

build error 

gyp ERR! System Darwin 20.4.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/caesar/Downloads/music-player/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/caesar/Downloads/music-player/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64" "--napi_version=7" "--node_abi_napi=napi"

gyp ERR! cwd /Users/caesar/Downloads/music-player/node_modules/fsevents

gyp ERR! node -v v14.16.1

gyp ERR! node-gyp -v v5.1.0

gyp ERR! not okgyp 

 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 20.4.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/caesar/Downloads/music-player/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/caesar/Downloads/music-player/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64" "--napi_version=7" "--node_abi_napi=napi"

gyp ERR! cwd /Users/caesar/Downloads/music-player/node_modules/fsevents

gyp ERR! node -v v14.16.1

gyp ERR! node-gyp -v v5.1.0

gyp ERR! not ok 

node-pre-gyp ERR! build error 

node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/caesar/Downloads/music-player/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64/fse.node --module_name=fse --module_path=/Users/caesar/Downloads/music-player/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64 --napi_version=7 --node_abi_napi=napi' (1)

node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/caesar/Downloads/music-player/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)

node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:315:20)

node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1048:16)

node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)

node-pre-gyp ERR! System Darwin 20.4.0

node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/caesar/Downloads/music-player/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"

node-pre-gyp ERR! cwd /Users/caesar/Downloads/music-player/node_modules/fsevents

node-pre-gyp ERR! node -v v14.16.1

node-pre-gyp ERR! node-pre-gyp -v v0.10.3

node-pre-gyp ERR! not ok 

Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/caesar/Downloads/music-player/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64/fse.node --module_name=fse --module_path=/Users/caesar/Downloads/music-player/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64 --napi_version=7 --node_abi_napi=napi' (1)

> electron@4.1.3 postinstall /Users/caesar/Downloads/music-player/node_modules/electron

> node install.js

... and 1 more


正在回答

举报

0/150
提交
取消

npm install 失败了

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信