How to get the package from privately hosted repository.
Go to user home directory and create .npmrc file with following content
registry=http://nexus.sharad.co.uk/repository/npm-releases/
Login to privately hosted repositories using below commands
npm login --registry http://nexus.sharad.co.uk/repository/npm-releases/
npm login --registry http://nexus.sharad.co.uk/repository/npm-releases/ --scope=@whitelabel
Now, feel free to build the project.
Go to project home directory and run the below command to install
npm --loglevel=info install
Now, feel free to run the storybook of the project.
Go to project home directory and run the below command to install
npm --loglevel=info run storybook
Now, if the component is completed, then it must be built before publishing it in Nexus Repo.
Go to project home directory and run the below command to build it.
npm --loglevel=info run build-lib
Once build is completed. Now you can publish the project.
Go to project home directory and run the below command to publish
npm --loglevel=info publish