This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
npm ls
not listing duplicate webpack
#19927
Labels
npm ls
not listing duplicate webpack
#19927
I'm opening this issue because:
What's going wrong?
npm ls webpack
is not correctly showing all installations of webpack, when 4 is installed as a package dependency and 3 is installed as a sub dependency.I think this a bug with npm ls.
How can the CLI team reproduce the problem?
Start a new package as follows:
You should see the following output:
This is correct, as
@storybook/react
has the following in dependencies:Then install a version of webpack that differs from the
@storybook/react
dependency:I would expect to get:
But actually get:
However,
example-project/node_modules/@storybook/react/node_modules/webpack
does exist on disk, so the module is there but is missing fromnpm ls
.supporting information:
npm -v
prints: 5.6.0node -v
prints: v8.9.3npm config get registry
prints: https://registry.npmjs.org/The text was updated successfully, but these errors were encountered: