mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	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 <rohit@yadav.cloud> * Update ui/package.json --------- Signed-off-by: Rohit Yadav <rohit@yadav.cloud>
This commit is contained in:
		
							parent
							
								
									22bf8fd5d1
								
							
						
					
					
						commit
						d9abc078cf
					
				
							
								
								
									
										10
									
								
								ui/README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								ui/README.md
									
									
									
									
									
								
							| @ -8,18 +8,18 @@ A modern role-based progressive CloudStack UI based on Vue.js and Ant Design. | |||||||
| 
 | 
 | ||||||
| Install node: (Debian/Ubuntu) | Install node: (Debian/Ubuntu) | ||||||
| 
 | 
 | ||||||
|     curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - |     curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash - | ||||||
|     sudo apt-get install -y nodejs |     sudo apt-get install -y nodejs | ||||||
|     # Or use distro provided: sudo apt-get install npm nodejs |     # Or use distro provided: sudo apt-get install npm nodejs | ||||||
| 
 | 
 | ||||||
| Install node: (CentOS/Fedora/RHEL) | Install node: (CentOS/Fedora/RHEL) | ||||||
| 
 | 
 | ||||||
|     curl -sL https://rpm.nodesource.com/setup_16.x | sudo bash - |     curl -sL https://rpm.nodesource.com/setup_20.x | sudo bash - | ||||||
|     sudo yum install nodejs |     sudo yum install nodejs | ||||||
| 
 | 
 | ||||||
| Install node: (Mac OS) | Install node: (Mac OS) | ||||||
| 
 | 
 | ||||||
|     brew install node@16 |     brew install node@20 | ||||||
| 
 | 
 | ||||||
| Optionally, you may also install system-wide dev tools: | Optionally, you may also install system-wide dev tools: | ||||||
| 
 | 
 | ||||||
| @ -44,6 +44,10 @@ To use the community Simulator QA server you can do this: | |||||||
| 
 | 
 | ||||||
|     echo "CS_URL=https://qa.cloudstack.cloud" > .env.local |     echo "CS_URL=https://qa.cloudstack.cloud" > .env.local | ||||||
| 
 | 
 | ||||||
|  | This may be required for newer npm versions: | ||||||
|  | 
 | ||||||
|  |     export NODE_OPTIONS=--openssl-legacy-provider | ||||||
|  | 
 | ||||||
| Build and run: | Build and run: | ||||||
| 
 | 
 | ||||||
|     npm run serve |     npm run serve | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| { | { | ||||||
|   "name": "cloudstack-ui", |   "name": "cloudstack-ui", | ||||||
|   "description": "Modern role-based Apache CloudStack UI", |   "description": "Modern role-based Apache CloudStack UI", | ||||||
|   "version": "4.19.0", |   "version": "4.22.0", | ||||||
|   "homepage": "https://cloudstack.apache.org/", |   "homepage": "https://cloudstack.apache.org/", | ||||||
|   "repository": { |   "repository": { | ||||||
|     "type": "git", |     "type": "git", | ||||||
| @ -106,8 +106,10 @@ | |||||||
|     "uglifyjs-webpack-plugin": "^2.2.0", |     "uglifyjs-webpack-plugin": "^2.2.0", | ||||||
|     "vue-jest": "^5.0.0-0", |     "vue-jest": "^5.0.0-0", | ||||||
|     "vue-svg-loader": "^0.17.0-beta.2", |     "vue-svg-loader": "^0.17.0-beta.2", | ||||||
|     "webpack": "^4.46.0" |     "webpack": "^4.46.0", | ||||||
|  |     "node-gyp": "10.0.1",  "nan": "2.18.0" | ||||||
|   }, |   }, | ||||||
|  |   "resolutions": { "nan": "2.18.0" }, | ||||||
|   "eslintConfig": { |   "eslintConfig": { | ||||||
|     "root": true, |     "root": true, | ||||||
|     "env": { |     "env": { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user