node-fibers: Unable to install with node 7

13:28:03 npm ERR! Linux 4.4.0-31-generic
13:28:03 npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--only=production"
13:28:03 npm ERR! node v7.0.0
13:28:03 npm ERR! npm  v3.10.8
13:28:03 npm ERR! code ELIFECYCLE
13:28:03 
13:28:03 npm ERR! fibers@1.0.15 install: `node build.js || nodejs build.js`
13:28:03 npm ERR! Exit status 1
13:28:03 npm ERR! 
13:28:03 npm ERR! Failed at the fibers@1.0.15 install script 'node build.js || nodejs build.js'.

How to fix that?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 28 (9 by maintainers)

Most upvoted comments

Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: `sudo apt-get install g++ build-essential`
Alpine users please run: `sudo apk add python make g++

I can install firbers in v7.0.0 in mac but not ubuntu

@sjmcdowall from what I can gather there’s at least three different issues being discussed on this thread, but the answer to all of them are essentially “install a compiler” or “fix your compiler”.

  1. Originally the issue was about node v7, I don’t ship binaries for odd-numbered binaries for reasons already mentioned.
  2. @LKay was having issues with docker, specifically Alpine Linux. Alpine uses a different version of libc which needs some different compiler flags, so I don’t ship binaries for that one either. He’s already got his build working correctly, so that’s good.
  3. @megamindbrian just copy/pasted error logs from fsevents which isn’t my module, but it also has a compilation stage so I can only assume he has build issues too. The solution there is to follow the instructions in the node-gyp README.

The native module toolchain for nodejs has some coverage gaps which can cause issues like this that are difficult to troubleshoot if you’ve never needed to compile anything.

@laverdet, what do you mean? The rest of error log is a standard instruction how to report one.