Set up npm to use your internal registry
Set up npm so that Node.js workspaces can install packages from your internal npm registry. .Prerequisites
About this task
- You are not running any npm workspace.
Warning:
Applying a ConfigMap that sets environment variables might cause a workspace boot loop.
If you encounter this behavior, remove the
ConfigMapand edit the devfile directly.
Procedure
Results
- Open a terminal in your workspace.
- Verify the npm registry configuration:
$ npm config get registryThe output shows the artifact repository URL from your ConfigMap.
- Install a package to verify artifact resolution from the mirror:
$ npm install express