Error: Cannot find module 'fibers' when upgrading to Rocket.Chat 0.14
~/Rocket.Chat$ 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.
Resolution: (cd programs/server && npm install)
@Sing-Li @MuhClaren Should we add this to docs? Is this required after each update?
@improvethings how did you perform the upgrade? Did you download the ZIP file from https://rocket.chat/releases ?
I followed step 5 of: https://github.com/RocketChat/Rocket.Chat/wiki/Deploy-Rocket.Chat-without-docker
(removed the previous version, and did curl -L https://rocket.chat/releases/latest/download -o rocket.chat.tgz)
Did you do the "4. Repeat Installation step"??
The "Installation Step" has:
mv bundle Rocket.Chat
cd Rocket.Chat/programs/server
npm install
cd ../..
its not a must to rename it to Rocket.Chat right?
@kyrogue no
I too an having this same error on CentOS 7 with the latest version. Node is 8.9.3. I followed the direction above to npm install again but get these errors.
`npm ERR! Linux 4.15.10-1.el7.elrepo.x86_64 npm ERR! argv "/usr/local/bin/node" "/usr/bin/npm" "install" npm ERR! node v8.9.3 npm ERR! npm v3.10.10 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn
npm ERR! [email protected] install: node build.js || nodejs build.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script 'node build.js || nodejs build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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 information on how to open an issue for this project with:
npm ERR! npm bugs fibers
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls fibers
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /var/www/html/rocket.chat/programs/server/npm-debug.log`
Is there a newer repo for npmand node.js than what is in epel?
Same again with current 1.1.1 release - downloaded from https://releases.rocket.chat/latest/download
i have the same issue with verison 3.0.2 i am running nodejs 12.16.1
Feb 27 11:40:56 chat rocketchat[679]: Error: Cannot find module '/opt/Rocket.Chat/programs/server/node_modules/fibers/bin/linux-x64-57-glibc/fibers'
Feb 27 11:40:56 chat rocketchat[679]: at Function.Module._resolveFilename (module.js:548:15)
Feb 27 11:40:56 chat rocketchat[679]: at Function.Module._load (module.js:475:25)
Feb 27 11:40:56 chat rocketchat[679]: at Module.require (module.js:597:17)
Feb 27 11:40:56 chat rocketchat[679]: at require (internal/module.js:11:18)
Feb 27 11:40:56 chat rocketchat[679]: at Object.
Looks like rocketchat looks for fibers in a folder that no longer exists .
same issue with verison 3.0.3 i and nodejs 12.16.1
I resolved with
sudo npm install -g inherits n && sudo n 12.14.0
It is one of the steps of the installation guide https://rocket.chat/docs/installation/manual-installation/ubuntu/
@sotoplatero doesn't solve it for me i already have correct node version .
same here, release from https://releases.rocket.chat/latest/download
Same here when upgrading to v3 from v2.2: https://github.com/RocketChat/Rocket.Chat/issues/16611#issuecomment-674127306