I'm using Angular 14. I have this custom library project with this folder structure
+ projects
+ my-library
- package.json
In package.json, I have
{
"name": "my-library",
"version": "7.0.0",
"peerDependencies": {
"@angular/common": "^14.1.2",
"@angular/core": "^14.1.2"
},
"dependencies": {
"parse-domain": "^3.0.3"
}
}
I have my library stored in a custom repo. However, when I go and try and install this custom library in another project using
$ npm install my-library@latest --registry=https://my-custom-repo.com/storage/npm/artifacts/ --legacy-peer-deps
npm ERR! code E404
npm ERR! 404 Not Found - GET https://my-custom-repo.com/storage/npm/artifacts/parse-domain - not_found
npm ERR! 404
npm ERR! 404 'parse-domain@^3.0.3' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\npm-cache\_logs\2023-04-10T18_27_45_000Z-debug-0.log
The error above indicates it is attempting to look for the custom library dependency in the custom repo, even though it is just in the normal npm repo. How do I instruct the build command to install other dependencies from npm central rather than my custom repo?