-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto-install-peer does not work on with workspace/link #4842
Labels
Comments
I came across this issue previously which may or may not be related: #4820 Feel free to move/close this if the same thing. I thought I'd share my additional info |
same issue +1 |
It will never work with symlinked dependencies. It is not possible to do. You either inject dep or you install mocha as a dev dependency of the dep project. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The new auto-install-peer behavior is not working with
workspace
norlink
protocols.Interestingly, it seems to work with tarballs
pnpm version:
p7.1.7
Code to reproduce the issue:
Expected behavior:
mocha
would be installed along withdep
onmain/node_modules
folderActual behavior:
Only
dep
is installed.Additional information:
Installing using pnpm after npm seems to work
--install-links
flag to fix that (npm v7 does not install linked packages dependencies npm/cli#2339 (comment).pack
the dependency and add it as a tarball instead of a link, it seems to work:The text was updated successfully, but these errors were encountered: