错误的ERR! fibers@1.0.15 install:`node build.js || nodejs build.js`

时间:2018-03-28 11:29:11

标签: npm npm-install node-fibers fibers

我试图通过引用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:

  2. 并且

    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.
    2. 我正在使用 ubuntu v16.04 node v9.3.0

2 个答案:

答案 0 :(得分:1)

节点版本存在问题。它应该只是6.x.x

答案 1 :(得分:-1)

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

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