• npm install node-echarts npm ERR! code ELIFECYCLE


    1、错误描述

    Administrator@USER-0GUONPPBHK MINGW64 /f/dojo/abcd/abcc
    $ npm install node-echarts
    
    > canvas-prebuilt@1.6.11 install F:dojoabcdabcc
    ode_modulescanvas-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:dojoabcdabcc
    ode_modules
    ode-pre-gyplibinstall.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
    ode_modules
    equest
    equest.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:dojoabcdabcc
    ode_modulescanvas-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: fsevents@1.2.7 (node_modulesfsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
    
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! canvas-prebuilt@1.6.11 install: `node-pre-gyp install`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the canvas-prebuilt@1.6.11 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:
    odejs
    ode_cache\_logs2019-01-24T01_25_12_977Z-debug.log
    
    Administrator@USER-0GUONPPBHK MINGW64 /f/dojo/abcd/abcc
    $

    2、错误原因

    3、解决办法

  • 相关阅读:
    python3 提示No module named _sqlite3
    python3 无法使用flask.ext.* 报错的解决方法
    Java中操作时间比较好用的类
    Integer和Integer数据的大小比较
    Django学习(七) 创建第一个Django项目
    Python学习(七) 流程控制if语句
    Django学习(六) 模板
    Python学习(六) Python数据类型:字典(重要)
    Python学习(五) Python数据类型:列表(重要)
    Python学习(四) Python数据类型:序列(重要)
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13313734.html
Copyright © 2020-2023  润新知