报错信息
gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16) gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) gyp ERR! System Darwin 23.0.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/ming/Desktop/ng-rcc2/rcc-page/node_modules/webpack-dev-server/node_modules/fsevents gyp ERR! node -v v14.17.5 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok
解决办法
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
标签:npm,node,ERR,modules,js,install,gyp,bug From: https://www.cnblogs.com/Smile-W/p/18199161