angularnpmnpm-publishsinopianpm-private-modules

Unable to install sub npm dependencies for a pvt npm module


I have an npm private repo through sinopia I have published an app in this. It is a full end-to-end application using Angular2 on the UI side. It has its own dependencies mentioned in package.json such as @angular/core, animations etc.

When I install this pvt module, I am getting an error where it is unable to install sub-dependencies, i.e. dependencies which are part of pvt module.

Screenshot of the error:

enter image description here


Solution

  • It's looking for dependencies which are not global but that are in your private repository. You should change the configuration to allow download of these dependencies from the global npm repository. Add this configuration to .npmrc file

     @angular:registry=registry.npmjs.org