mirror of
https://github.com/goharbor/harbor
synced 2025-04-17 16:26:45 +00:00
(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:
parent
28c3a0ed63
commit
5c85f5ec43
1
src/portal/.nvmrc
Normal file
1
src/portal/.nvmrc
Normal file
|
@ -0,0 +1 @@
|
|||
v16.18.0
|
|
@ -8,11 +8,18 @@ This is the project based on Clarity and Angular to build Harbor UI.
|
|||
|
||||
Start
|
||||
============
|
||||
1. npm install (should trigger 'npm postinstall')
|
||||
2. npm run postinstall (if not triggered, manually run this step)
|
||||
3. copy "proxy.config.mjs.temp" file to "proxy.config.mjs"
|
||||
1. Use the specified Node version:
|
||||
Run the following command to use the Node version specified in the .nvmrc file:
|
||||
```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`
|
||||
4. 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. open your browser on https://localhost:4200
|
||||
5. Modify "proxy.config.mjs" to specify a Harbor server. And you can specify the agent if you work behind a corporate proxy
|
||||
6. npm run start
|
||||
7. open your browser on https://localhost:4200
|
||||
|
||||
|
|
|
@ -18,5 +18,5 @@
|
|||
],
|
||||
"useDefineForClassFields": false
|
||||
},
|
||||
"exclude": ["cypress.config.ts"],
|
||||
"exclude": ["cypress.config.ts"]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user