§2024-08-09
failed on ther latest and 5.0.3, xxxx `npm install --production` xxxx
Using x8664.yushei.com.te
cat /etc/os-release
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo
- [www.rocket.chat]https://www.rocket.chat/)
- refer Deploy with Ubuntu
- install rewuirements
$ sudo pacman -Sy base-devel curl graphicsmagick
..
1/3) reinstalling curl [####################################################################] 100%
(2/3) reinstalling base-devel [####################################################################] 100%
(3/3) installing graphicsmagick [####################################################################] 100%
Optional dependencies for graphicsmagick
jasper: jp2 module
libwmf: wmf module
libxml2: msl, svg, url modules [installed]
ghostscript: pdf, ps modules [installed]
libheif: heic module
libjxl: jpeg-xl module [installed]
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Warn about old perl modules
- The latest rocketchat is 6.11.1
- Node: 14.21.3
- MongoDB: 4.4, 5.0, 6.0
- Apps-Engine: 1.44.0
fnm install v14.21.3
$ fnm install v14.21.3
$ fnm default 14.21.3
$ fnm list
* v14.21.3 default
* v20.14.0 lts-latest
* system
$ source ~/.bashrc
$ which node
/run/user/1026/fnm_multishells/4614_1724043251301/bin/node
$ node --version
v14.21.3
- Download and extract the latest release of Rocket.Chat.
$ curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
$ tar -xvzf /tmp/rocket.chat.tgz -C /tmp
$ cd /tmp/bundle/programs/server && npm install --production
...
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gc-stats@1.4.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gc-stats@1.4.0 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! /home/alexlai/.npm/_logs/2024-08-19T05_00_23_309Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! meteor-dev-bundle@ install: `node npm-rebuild.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the meteor-dev-bundle@ 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! /home/alexlai/.npm/_logs/2024-08-19T05_00_23_496Z-debug.log
- Download 5.0.3
- Node: 14.19.3
- NPM: 6.14.17
- MongoDB: 4.2, 4.4, 5.0