(Doc): Add supported Node Version for Harbor UI in .nvmrc (#21153)

add .nvmrc and update doc



update nvmrc to supported version

Signed-off-by: bupd <bupdprasanth@gmail.com>
Co-authored-by: Vadim Bauer <vb@container-registry.com>
This commit is contained in:
Prasanth Baskar 2025-02-03 19:13:04 +05:30 committed by GitHub
parent 28c3a0ed63
commit 5c85f5ec43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 7 deletions

1
src/portal/.nvmrc Normal file
View File

@ -0,0 +1 @@
v16.18.0

View File

@ -8,11 +8,18 @@ This is the project based on Clarity and Angular to build Harbor UI.
Start Start
============ ============
1. npm install (should trigger 'npm postinstall') 1. Use the specified Node version:
2. npm run postinstall (if not triggered, manually run this step) Run the following command to use the Node version specified in the .nvmrc file:
3. copy "proxy.config.mjs.temp" file to "proxy.config.mjs" ```bash
nvm install # Install the Node version specified in .nvmrc (if not already installed)
nvm use # Switch to the specified Node version
```
This step helps avoid compatibility issues, especially with dependencies.
2. npm install (should trigger 'npm postinstall')
3. npm run postinstall (if not triggered, manually run this step)
4. copy "proxy.config.mjs.temp" file to "proxy.config.mjs"
`cp proxy.config.mjs.temp proxy.config.mjs` `cp proxy.config.mjs.temp proxy.config.mjs`
4. Modify "proxy.config.mjs" to specify a Harbor server. And you can specify the agent if you work behind a corporate proxy 5. Modify "proxy.config.mjs" to specify a Harbor server. And you can specify the agent if you work behind a corporate proxy
5. npm run start 6. npm run start
6. open your browser on https://localhost:4200 7. open your browser on https://localhost:4200

View File

@ -18,5 +18,5 @@
], ],
"useDefineForClassFields": false "useDefineForClassFields": false
}, },
"exclude": ["cypress.config.ts"], "exclude": ["cypress.config.ts"]
} }