Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fibers@2.0.0 install: node build.js || nodejs build.js npm ERR! Exit status 134 npm ERR! npm ERR! Failed at the fibers@2.0.0 install script 'node build.js || nodejs build.js'. #358

Closed
czhao028 opened this issue Jan 18, 2018 · 9 comments

Comments

@czhao028
Copy link

I have the latest node.js installed, but whenever I do "npm install sync", which has a dependency on this, it returns this error. Here is debug.log -
npm-debug.log

@bjankord
Copy link

bjankord commented Jan 18, 2018

I just noticed similar errors in my jenkins build. After running npm install, it errors out

Here's a bit of the error log

npm ERR! prepareGitDep 1> 
npm ERR! prepareGitDep > fibers@2.0.0 install /home/ph/.npm/_cacache/tmp/git-clone-479434ae/node_modules/fibers
npm ERR! prepareGitDep > node build.js || nodejs build.js
npm ERR! prepareGitDep 
npm ERR! prepareGitDep `linux-x64-57` exists; testing

What's odd to me is it doesn't look like there have been in new releases of this project.
Last release looks like it was 7 months ago.

screen shot 2018-01-17 at 8 48 37 pm

Edit:
I'm not using fibers directly, its a dependency to wdio-sync which I am using.

npm install on my machine, Mac OSX 10.11.6, works fine. I'm running into the error on our jenkins build which is a linux OS.

@benjamn
Copy link
Contributor

benjamn commented Jan 18, 2018

What happens if you install another binary npm package, such as bcrypt?

npm install bcrypt --build-from-source

If that fails too, you may need to run through the setup instructions for node-gyp, which is responsible for compiling most binary npm packages (including bcrypt and fibers): https://github.com/nodejs/node-gyp/#installation

@bjankord
Copy link

I'm unable to reproduce the error at this time. ¯_(ツ)_/¯
If I see this issue again, I'll post back here.

@czhao028
Copy link
Author

czhao028 commented Jan 18, 2018

npm install bcrypt --build-from-source
works, but thank you for your help, it turned out just to be a memory error! My school allocates certain amounts of memory to each user in the web portal we use to build apps and the issue was resolved by allocating my account more space.

@cuongluu8
Copy link

@bjankord I think I'm currently experiencing this issue - like you it's failing in my jenkins build and like you I am also using wdio-sync. Do you remember what you did to resolve this?

Looking at my logs it looks like it pickup up an incorrect version of node-gyp

/var/lib/jenkins/.node-gyp/0.12.0/src/node.h: In function ‘void node::FatalException(const v8::TryCatch&)’:

I am using node 6 (through nvm), so I assume it should be picking it node-gyp from there.

@bjankord
Copy link

bjankord commented Feb 8, 2018

@cuongluu8 Ah thats interesting about using node 6. Our jenkins executors did not have the same version of node consistently among them. Most where on node 8 and one was on node 6. Our build would run on whichever executor was available and we were not controlling the node version via nvm like we should have. I believe we hit this issue likely when the build was running on a jenkins executor with node 6 and "resolved" itself when the build ran on another executor that had node 8.

@saintx
Copy link

saintx commented Mar 25, 2018

I was able to solve this problem tonight by upgrading to the latest stable version of node.

@cuongluu8
Copy link

this ended up being caused by a separate problem. Basically because our production environment was still running Node 0.12, our pipeline does a npm rebuild using node 0.12. The problem with this is that npm rebuild builds ALL dependencies, including dev dependencies, which is where this error is coming from (for me anyway).
Therefore we had to do a npm prune --production to remove all dev dependencies before npm rebuild

@wreiske
Copy link

wreiske commented Aug 2, 2018

Had a heck of a time with fibers on CentOS 6.10 in a newly updated deployed meteor application. Here's how I fixed it: https://reiske.tech/2018/08/02/meteor-1-7-0-3-fibers-fix-to-run-on-centos-6-10/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants