Skip to content

Commit d9abc07

Browse files
ui: fix build on latest Ubuntu and macOS (#11259)
* ui: fix build on latest Ubuntu and macOS This fixes UI build, so it can build against nodejs 20.x/LTS. Signed-off-by: Rohit Yadav <[email protected]> * Update ui/package.json --------- Signed-off-by: Rohit Yadav <[email protected]>
1 parent 22bf8fd commit d9abc07

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

ui/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ A modern role-based progressive CloudStack UI based on Vue.js and Ant Design.
88

99
Install node: (Debian/Ubuntu)
1010

11-
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
11+
curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -
1212
sudo apt-get install -y nodejs
1313
# Or use distro provided: sudo apt-get install npm nodejs
1414

1515
Install node: (CentOS/Fedora/RHEL)
1616

17-
curl -sL https://rpm.nodesource.com/setup_16.x | sudo bash -
17+
curl -sL https://rpm.nodesource.com/setup_20.x | sudo bash -
1818
sudo yum install nodejs
1919

2020
Install node: (Mac OS)
2121

22-
brew install node@16
22+
brew install node@20
2323

2424
Optionally, you may also install system-wide dev tools:
2525

@@ -44,6 +44,10 @@ To use the community Simulator QA server you can do this:
4444

4545
echo "CS_URL=https://qa.cloudstack.cloud" > .env.local
4646

47+
This may be required for newer npm versions:
48+
49+
export NODE_OPTIONS=--openssl-legacy-provider
50+
4751
Build and run:
4852

4953
npm run serve

ui/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cloudstack-ui",
33
"description": "Modern role-based Apache CloudStack UI",
4-
"version": "4.19.0",
4+
"version": "4.22.0",
55
"homepage": "https://cloudstack.apache.org/",
66
"repository": {
77
"type": "git",
@@ -106,8 +106,10 @@
106106
"uglifyjs-webpack-plugin": "^2.2.0",
107107
"vue-jest": "^5.0.0-0",
108108
"vue-svg-loader": "^0.17.0-beta.2",
109-
"webpack": "^4.46.0"
109+
"webpack": "^4.46.0",
110+
"node-gyp": "10.0.1", "nan": "2.18.0"
110111
},
112+
"resolutions": { "nan": "2.18.0" },
111113
"eslintConfig": {
112114
"root": true,
113115
"env": {

0 commit comments

Comments
 (0)