4

我正在尝试通过参考文档在我的笔记本电脑上安装 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:节点构建.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

4

2 回答 2

2

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

于 2018-03-28T13:36:08.673 回答
0

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

  1. sudo npm install - g node-gyp
  2. sudo apt-get install g++ build-essential
于 2018-06-13T15:58:09.490 回答