§2024-09-08
¶How to get Rocket.Chat specific version, for exmaple 6.11.2
- 試作機器: h2Jammy.yushei.net
- Get specific version 6.12.0
$ npm -version
6.14.18
$ node --version
v14.21.3
$ pwd
~/build/src
$ curl -L https://releases.rocket.chat/6.12.0/download -o Rocket.Chat.6.12.0.tgz
$ cd ..
$ mkdir Rocket.Chat.6.12.0
$ tar xvf src/Rocket.Chat.6.12.0.tgz -C Rocket.Chat.6.12.0
$ cd Rocket.Chat.6.12.0/bundle/programs/server/
alexlai@h2Jammy:~/build/Rocket.Chat.6.12.0/bundle/programs/server$ ls
app boot.js.map config.json mini-files.js npm-rebuild-args.js npm-rebuild.js.map npm-require.js.map packages program.json server-json.js
assets boot-utils.js debug.js mini-files.js.map npm-rebuild-args.js.map npm-rebuilds.json npm-shrinkwrap.json profile.js runtime.js server-json.js.map
boot.js boot-utils.js.map debug.js.map npm npm-rebuild.js npm-require.js package.json profile.js.map runtime.js.map
$ npm install
{
"npm": "6.14.18",
"ares": "1.18.1",
"brotli": "1.0.9",
"cldr": "40.0",
"icu": "70.1",
"llhttp": "2.1.6",
"modules": "83",
"napi": "8",
"nghttp2": "1.42.0",
"node": "14.21.3",
"openssl": "1.1.1t",
"tz": "2022f",
"unicode": "14.0",
"uv": "1.42.0",
"v8": "8.4.371.23-node.88",
"zlib": "1.2.11"
}
added 154 packages from 87 contributors and audited 155 packages in 86.622s
7 packages are looking for funding
run `npm fund` for details
found 1 moderate severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
- Get specific version 6.11.2
$ pwd
~/build/src
$ curl -L https://releases.rocket.chat/6.11.2/download -o Rocket.Chat.6.11.2.tgz
$ cd ..
$ tar xvf ./src/Rocket.Chat.6.11.2.tgz
$ cd bundle/
alexlai@h2Jammy:~/build/bundle$ ls
main.js programs README server star.json
$ node --version
v14.21.3
$ npm --version
6.14.18
$ cd programs/server
$ npm install --production
....
added 143 packages from 75 contributors and audited 155 packages in 88.685s
5 packages are looking for funding
run `npm fund` for details
found 1 moderate severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
╭────────────────────────────────────────────────────────────────╮
│ │
│ New major version of npm available! 6.14.18 → 10.8.3 │
│ Changelog: https://github.com/npm/cli/releases/tag/v10.8.3 │
│ Run npm install -g npm to update! │
│ │
╰────────────────────────────────────────────────────────────────╯
debconf: delaying package configuration, since apt-utils is not installed
Fetched 301 kB in 2s (157 kB/s)
Selecting previously unselected package tzdata.
(Reading database ... 4117 files and directories currently installed.)
Preparing to unpack .../tzdata_2024a-0ubuntu0.20.04.1_all.deb ...
Unpacking tzdata (2024a-0ubuntu0.20.04.1) ...
Setting up tzdata (2024a-0ubuntu0.20.04.1) ...
Current default time zone: 'Etc/UTC'
Local time is now: Mon Sep 9 01:51:10 UTC 2024.
Universal Time is now: Mon Sep 9 01:51:10 UTC 2024.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
Current default time zone: 'Etc/UTC'
Local time is now: Mon Sep 9 01:51:11 UTC 2024.
Universal Time is now: Mon Sep 9 01:51:11 UTC 2024.