0
DominaTang created
yarn install v1.22.22 info No lockfile found. [1/4] Resolving packages... error Couldn't find package "@abp/ng.components" on the "npm" registry.
package version is ~9.1.1
I did run abp login command first.
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
1 Answer(s)
-
0
abp loginis only for ABP CLI (downloading commercial libs, templates, etc.). It does not affect where Yarn/NPM searches for Angular packages.@abp/ng.componentsis a public NPM package. If Yarn says it can’t find it, you are almost certainly not hitting the public registry (or you have an.npmrc/.yarnrcthat overrides the registry).
Do the following in your Angular folder:
- Ensure you are using the public NPM registry
yarn config set registry https://registry.npmjs.org npm config set registry https://registry.npmjs.org- Remove possible local artifacts and retry
rm -rf node_modules yarn.lock package-lock.json yarn cache clean yarn install- Check for registry overrides (fix/remove if they point to a private feed)
- Look for these files and check
registry=...or scope registries like@abp:registry=...:./.npmrc~/.npmrc./.yarnrc/~/.yarnrc
After fixing the registry override,
yarn installshould resolve@abp/ng.components@~9.1.1normally.Links:
- https://abp.io/docs/latest/get-started/pre-requirements
- https://abp.io/support/questions/2932
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)