mirror of
https://github.com/goharbor/harbor
synced 2025-04-22 05:08:36 +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
|
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
|
||||||
|
|
||||||
|
@ -18,5 +18,5 @@
|
|||||||
],
|
],
|
||||||
"useDefineForClassFields": false
|
"useDefineForClassFields": false
|
||||||
},
|
},
|
||||||
"exclude": ["cypress.config.ts"],
|
"exclude": ["cypress.config.ts"]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user