###Install npm
Install npm v8.6.0.
###Install Node.js
Install node v14.17.1 (as in the pom.xml v14.17.1).
gulp
install gulp by running the following command npm install --global gulp-cli
../dox-sequence-diagram-ui
npm install && npm run build
openecomp-ui
npm install
devConfig.defaults.json
file and name it devConfig.json
(it is already configured to gitignore, so it will not be pushed)devConfig.json
:set "proxyCatalogTarget" to the URL of the sdc-frontend; set "proxyTarget" to the URL of the sdc-onboard-backend (pay attention, it is a JSON file):
For example http://<host>:<port>
npm start
http://localhost:9000/sdc1/#!/onboardVendor
Problem | Why is this happening | Solution |
---|---|---|
Build (npm install) error | npm/node_modules cache | If having problems with the compilation of dox-sequence-diagram-ui and openecomp-ui, delete the node_modules and package-lock.json in each respective projects folder. |
npm cannot reach destination | proxy | When within managed network, you should set your proxy to NPM as the following: npm config set proxy http://<host>:<port> npm config set https-proxy http://<host>:<port> |
git protocol is blocked and cannot connect | managed network rules for protocols | When within managed network, you should set globally that when git protocol is used, then it will be replaced with "https" git config --global url."https://".insteadOf git:// |