i ran into this issue trying to convert a project from yarn to npm, but i’ve also seen it when starting an entirely new project from scratch. i’m running node 10.15.1 and npm 6.7.0 and when i go to install @storybook/react@^4.1.11 i’m getting an unmet peerDependency warning:
npm WARN firstname.lastname@example.org requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
i didn’t install acorn-dynamic-import into my project, so i figured this is a transient dependency issue deeper in the tree. i looked into it and it’s email@example.com requiring acorn-dynamic-import@^4.0.0 as a dependency, but it’s also requiring acorn@^6.0.5, so the peer dependency should be met.
but, npm never installs acorn. so…? what next?
my only other thought is that webpack is using yarn and yarn.lock, not npm.