# Upgrade Rocket.Chat

**URL:** <https://forums.rocket.chat/t/upgrade-rocket-chat/18491>\
**Category:** Community Support\
**Created:** [November 15, 2023, 12:31pm UTC](https://forums.rocket.chat/t/upgrade-rocket-chat/18491 "2023-11-15T12:31:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zen](https://avatars.discourse-cdn.com/v4/letter/z/7c8e57/32.png) [@zen](https://forums.rocket.chat/u/zen)\
**Post date:** [November 15, 2023, 12:31pm UTC](https://forums.rocket.chat/t/upgrade-rocket-chat/18491/1 "2023-11-15T12:31:37Z")

</div>

Hello,  
my Rocket.Chat server looks like this:

### Server Setup Information

- Version of Rocket.Chat Server: 3.6.0
- Operating System: Ubuntu 18.04 LTS
- Deployment Method: tar
- Number of Running Instances: 1
- NodeJS Version: 12.22.1
- npm: 6.14.12
- MongoDB Version: 3.6.3

I try to upgrade my Rocket.Chat to `version 4.1.1` because it has the same requirements as mine, according this document [Updating Rocket.Chat - Rocket.Chat Docs](https://docs.rocket.chat/deploy/deploy-rocket.chat/updating-rocket.chat).

There is a step  
`cd /tmp/bundle/programs/server && npm install`

when I execute command `npm install` I get

```auto
npm WARN deprecated node-pre-gyp@0.14.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.

> fibers@4.0.3 install /opt/rocket/bundle/programs/server/node_modules/fibers
> node build.js || nodejs build.js

internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module '/opt/rocket/bundle/programs/server/node_modules/fibers/build.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
module.js:549
    throw err;
    ^

Error: Cannot find module '/opt/rocket/bundle/programs/server/node_modules/fibers/build.js'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fibers@4.0.3 install: `node build.js || nodejs build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fibers@4.0.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-11-15T11_43_17_449Z-debug.log

```

Could you help me to fix this problem?
