Meteor Node Fibers Error
-
When installing Rocket.Chat pretty much anywhere, this seems to be an issue. Anyone have insight on it?
# node main.js module.js:340 throw err; ^ Error: Cannot find module 'fibers' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/opt/Rocket.Chat/programs/server/boot.js:1:75) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17)
-
And when you try to install...
# npm install fibers / > fibers@1.0.9 install /opt/Rocket.Chat/node_modules/fibers > node build.js || nodejs build.js sh: node: command not found sh: nodejs: command not found npm ERR! fibers@1.0.9 install: `node build.js || nodejs build.js` npm ERR! Exit status 127 npm ERR! npm ERR! Failed at the fibers@1.0.9 install script. npm ERR! This is most likely a problem with the fibers package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node build.js || nodejs build.js npm ERR! You can get their info via: npm ERR! npm owner ls fibers npm ERR! There is likely additional logging output above. npm ERR! System Linux 3.10.0-327.4.5.el7.x86_64 npm ERR! command "/root/.nvm/v0.10.40/bin/node" "/root/.nvm/v0.10.40/bin/npm" "install" "fibers" npm ERR! cwd /opt/Rocket.Chat/server npm ERR! node -v v0.10.40 npm ERR! npm -v 1.4.28 npm ERR! code ELIFECYCLE npm ERR! not ok code 0
-
I had this issue, I tried again and it worked.....
-
@anonymous said:
I had this issue, I tried again and it worked.....
I did it once and it worked. The second time, it failed. That's not encouraging at all. Sounds like maybe there is an issue on the server side? I'm concerned about stability here.
You did a FULL install from scratch or just from partway through?
-
@scottalanmiller said:
You did a FULL install from scratch or just from partway through?
FULL. New VM and Everything.
-
@anonymous That's what I was afraid of.
-
I bet Ubuntu would be just fine.....
-
@anonymous said:
I bet Ubuntu would be just fine.....
Ubuntu doesn't even support Mongo (or vice versa) so not likely. I tried Ubuntu and it didn't even get close.
-
Of FreeBSD, Ubuntu and CentOS, CentOS is the only one that I got working. But only one out of two times, thus far.
-
Okay, so the fibers issue is related to it not liking the NVM installation of Node.
So on CentOS 7, the secret is to install the epe-release, then install nodejs. This installs Node v0.10.36, which is not what anyone wants. But once that is installed, you can go back to using NVM and a modern Node release and fibers is able to install!
So...
yum -y install epel-release yum -y install nodejs npm install fibers
Ta da
-
This post is deleted!