npm install 失败了

来源:-

麦田兔子

2021-05-06 20:54

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回答

还没有人回答问题,可以看看其他问题

Electron开发本地音乐播放器

跨平台开发框架Electron,一次编写多个系统使用

4411 学习 · 53 问题

查看课程

相似问题