npm install node-echarts npm ERR! code ELIFECYCLE

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/you23hai45/article/details/86620543

1、错误描述

Administrator@USER-0GUONPPBHK MINGW64 /f/dojo/abcd/abcc
$ npm install node-echarts

> [email protected] install F:\dojo\abcd\abcc\node_modules\canvas-prebuilt
> node-pre-gyp install

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 404 status code downloading tarball https://github.com/chearon/node-canvas-prebuilt/releases/download/v1.6.11/canvas-prebuilt-v1.6.11-node-v67-win32-x64.tar.gz
node-pre-gyp ERR! stack     at Request.<anonymous> (F:\dojo\abcd\abcc\node_modules\node-pre-gyp\lib\install.js:137:27)
node-pre-gyp ERR! stack     at Request.emit (events.js:193:15)
node-pre-gyp ERR! stack     at Request.onRequestResponse (F:\dojo\node_modules\request\request.js:1066:10)
node-pre-gyp ERR! stack     at ClientRequest.emit (events.js:188:13)
node-pre-gyp ERR! stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:562:21)
node-pre-gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:113:17)
node-pre-gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:449:20)
node-pre-gyp ERR! stack     at TLSSocket.emit (events.js:188:13)
node-pre-gyp ERR! stack     at addChunk (_stream_readable.js:288:12)
node-pre-gyp ERR! stack     at readableAddChunk (_stream_readable.js:269:11)
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command "F:\\nodejs\\node.exe" "F:\\dojo\\abcd\\abcc\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install"
node-pre-gyp ERR! cwd F:\dojo\abcd\abcc\node_modules\canvas-prebuilt
node-pre-gyp ERR! node -v v11.7.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
404 status code downloading tarball https://github.com/chearon/node-canvas-prebuilt/releases/download/v1.6.11/canvas-prebuilt-v1.6.11-node-v67-win32-x64.tar.gz
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     F:\nodejs\node_cache\_logs\2019-01-24T01_25_12_977Z-debug.log

Administrator@USER-0GUONPPBHK MINGW64 /f/dojo/abcd/abcc
$

2、错误原因

3、解决办法

猜你喜欢

转载自blog.csdn.net/you23hai45/article/details/86620543