错误:getaddrinfo ENOTFOUND github.com github.com:443 在GetAddrInfoReqWrap.onlookup上[按完成状态](dns.js:56:26)
C:\ Users \ abc \ Desktop \ Ecom \ lcoproject \ node_modules \ sharp>如果未定义npm_config_node_gyp(节点“ C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ npm-lifecycle \ node-gyp-bin” \ .... \ node_modules \ node-gyp \ bin \ node-gyp.js“ rebuild)else(节点“ C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp”)。 js“重建) 糟糕!配置错误 糟糕!错误:找不到Python可执行文件“ python”,可以设置PYTHON env变量。 糟糕!堆栈位于PythonFinder.failNoPython(C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ configure.js:484:19) 糟糕!放在PythonFinder中。 (C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ configure.js:509:16) 糟糕!堆栈在C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ graceful-fs \ polyfills.js:284:29 糟糕! FSReqWrap.oncomplete处的堆栈(fs.js:153:21) 糟糕!系统Windows_NT 10.0.10240 糟糕!命令“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js”“重建” 糟糕! CWD C:\ Users \ abc \ Desktop \ Ecom \ lcoproject \ node_modules \ sharp 糟糕!节点-v v10.15.3 糟糕!节点gyp -v v3.8.0 糟糕!不好 npm警告可选的跳过可选依赖性:fsevents@1.2.9(node_modules \ fsevents): npm WARN notsup跳过依赖项:fsevents@1.2.9不受支持的平台:通缉{“ os”:“ darwin”,“ arch”:“ any”}(当前:{“ os”:“ win32”,“ arch”: “ x64”})
npm错误!代码ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp@0.22.1安装:(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
npm ERR!退出状态1
npm ERR!
npm ERR!在Sharp@0.22.1安装脚本上失败。
npm ERR! npm可能不是问题。上面可能还有其他日志记录输出。
npm错误!可以在以下位置找到此运行的完整日志: npm ERR! C:\ Users \ abc \ AppData \ Roaming \ npm-cache_logs \ 2019-06-27T06_02_50_52错误命令失败:npm install
错误:命令失败:npm install
index.js:236 Promise.all.then.arr [npm] / [gatsby-cli] / [execa] /index.js:236:11
next_tick.js:68进程._tickCallback 内部/进程/next_tick.js:68:7