[英]Node.js v8-profiler module won't install on Node v8.1.0 on OSX
我在 OSX 終端中運行了yarn add v8-profiler
命令。 但我收到這個錯誤。 它說文件 node-v57-darwin-x64.tar.gz 不可用,因此它嘗試使用 node-gyp 構建。 但是我的本地機器上的 node-gyp 存在一些問題。 (我無法下載 XCode,因為我的 Macbook 上的內置無線適配器不起作用)。 我能做些什么來解決這個問題?
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.34
node-pre-gyp info using node@8.1.0 | darwin | x64
node-pre-gyp info check checked for "/node_projects/project/node_modules/v8-profiler/build/profiler/v5.7.0/node-v57-darwin-x64/profiler.node" (not found)
node-pre-gyp http GET https://node-inspector.s3.amazonaws.com/profiler/v5.7.0/node-v57-darwin-x64.tar.gz
node-pre-gyp http 404 https://node-inspector.s3.amazonaws.com/profiler/v5.7.0/node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/profiler/v5.7.0/node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for v8-profiler@5.7.0 and node@8.1.0 (node-v57 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://node-inspector.s3.amazonaws.com/profiler/v5.7.0/node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/node_projects/project/node_modules/node-pre-gyp/lib/util/compile.js:77:29)
node-pre-gyp ERR! stack at emitOne (events.js:115:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:210:7)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:195:12)
node-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:366:16)
node-pre-gyp ERR! stack at _combinedTickCallback (internal/process/next_tick.js:102:11)
node-pre-gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:161:9)
node-pre-gyp ERR! System Darwin 14.5.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/8.1.0_1/bin/node" "/node_projects/project/node_modules/v8-profiler/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /node_projects/project/node_modules/v8-profiler
node-pre-gyp ERR! node -v v8.1.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.34
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.