Published internal package to npm in a private org, now cannot install internal version #3679
-
I accidentally published a scoped internal package to npm. My apps have a dependency like "dependencies": {
"@org/repo": "*",
}, following this I've unpublished the package from npm, but everytime I try to do "Couldn't find package on npm registry" How do I tell turborepo to look for the package locally again :S Thanks Error:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
PNPM has "@org/package": "link:../../package" |
Beta Was this translation helpful? Give feedback.
PNPM has
workspace:*
to specify that a dependency should be resolved by the workspace. Yarn v1 only has*
but it should look for the local one first before jumping to the registry. Try again after clearing the cache (remove node_modules, and yarn.lock etc). If it's still not working even after that, you might be able to specify a different version (than the one you've published) and get it working. See yarnpkg/yarn#4878 (comment). If all else failed, you can link the dependency like this and that shouldn't fail.