当我运行 npm-install 时,我遇到了这个烦人的错误,尝试了 npm install --build-from-resource 并且没有工作。并尝试在全球安装 node-pre-gyp。Id 也没有修复错误。我已经尝试了几种方法,但还没有运气。
gyp ERR! 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:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 18.5.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/dmcshehan/Desktop/JS/Max test/redux--01-start/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/dmcshehan/Desktop/JS/Max test/redux--01-start/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64"
gyp ERR! cwd /Users/dmcshehan/Desktop/JS/Max test/redux--01-start/node_modules/fsevents
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
make: *** [Release/obj.target/fse/fsevents.o] …
Run Code Online (Sandbox Code Playgroud)