-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] install of local package differs from normal install #3081
Comments
eslint is not able to follow the symlink? that seems strange. that said, the creation of the symlink is the expected behavior today. one workaround would be to change directories into your edit: |
the symlink is not the problem. the problem is that eslint (apparently) expects the plugins to be directly in node_modules (like dependency tree for better clarification:
now the node_modules of
I still would expect |
this is part of the behavior of linking a directory, we don't actually install that package and its dependencies, instead we only create a symlink and leave the already existing node_modules in place. that's why you end up with "my_plugin" and "eslint-plugin-react" not being at the same depth in node_modules. you're right that we should document this more clearly, creating links when installing a directory is definitely a change in behavior with npm 7. |
(In general, when linking, all peer deps must also be linked, eslint included - this requirement, sadly, isn't new) |
keeping open to track ensuring that the documentation is clear about this behavior, and we document the workaround. |
Hello,
Neither installing nor hoisting happens. |
This was the same issue as #4428, and the docs have been updated to remove this incorrect info. |
Current Behavior:
npm install
of a local package does not place dependencies directly in node_modules (refer to reproduction for better explanation)Expected Behavior:
npm install
of a local package should do exactly the same as with a normal remote packageSteps To Reproduce:
Use Case (in case I'm approaching this the wrong way)
Testing an eslint plugin in local development.
Eslint requires dependent plugins (npm packages) to be present directly in node_modules.
Environment:
The text was updated successfully, but these errors were encountered: