【问题标题】:npm ERR! fibers@1.0.15 install: `node build.js || nodejs build.js`npm 错误!纤维@1.0.15 安装:`node build.js || nodejs build.js`
【发布时间】:2018-09-07 01:39:46
【问题描述】:

我正在尝试通过引用document 在我的笔记本电脑上安装 Sunbird。 但是在npm install 步骤上出现错误

  1. gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: unexpected end of file gyp ERR! stack at Zlib.zlibOnError [as onerror] (zlib.js:134:17) gyp ERR! System Linux 4.13.0-37-generic gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release" gyp ERR! cwd /home/ttpllt23/GIT/snd-setup/sunbird-portal/src/node_modules/fibers gyp ERR! node -v v9.3.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok node-gyp exited with code:

还有

  1. npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! fibers@1.0.15 install:node build.js || nodejs build.js npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the fibers@1.0.15 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

我正在使用 ubuntu v16.04 节点 v9.3.0

【问题讨论】:

  • 您能否修复此错误?如果您能提出解决方法或解决此错误的方法,将会很有帮助。

标签: npm npm-install node-fibers fibers


【解决方案1】:

节点版本存在问题。应该是 6.x.x 而已

【讨论】:

    【解决方案2】:

    确保您已经安装了以下依赖项,然后尝试在您的 Ubuntu 系统中安装 Fiber npm i fibers

    1. sudo npm install - g node-gyp
    2. sudo apt-get install g++ build-essential

    【讨论】:

    • 这并不能解决问题。还有其他解决办法吗?
    猜你喜欢
    • 2020-07-03
    • 2021-02-18
    • 1970-01-01
    • 1970-01-01
    • 2012-08-01
    • 2017-03-12
    • 2019-06-20
    • 2020-03-01
    • 1970-01-01
    相关资源
    最近更新 更多