Skip to content

Published internal package to npm in a private org, now cannot install internal version #3679

Closed Answered by frencojobs
mrwillis asked this question in Help
Discussion options

You must be logged in to vote

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.

"@org/package": "link:../../package"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by anthonyshew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants