You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
I'm trying to build a local dependency dep1 during npm install, but dep1's dependencies are not installed under dep1/node_modules, which is causing its build step to fail. npm's flattening behavior seems to be causing the dependencies to be hoisted out of dep1/node_modules directory and into the root ./node_modules. This screenshot captures the situation:
Basically, I expect npm to provide all the dependencies necessary to build the local dependency during postinstall in the same way that the dependencies are available during prepublish when publishing to the npm registry.
I'm opening this issue because:
What's going wrong?
I'm trying to build a local dependency
dep1
duringnpm install
, butdep1
's dependencies are not installed underdep1/node_modules
, which is causing its build step to fail. npm's flattening behavior seems to be causing the dependencies to be hoisted out ofdep1/node_modules
directory and into the root./node_modules
. This screenshot captures the situation:Basically, I expect npm to provide all the dependencies necessary to build the local dependency during
postinstall
in the same way that the dependencies are available duringprepublish
when publishing to the npm registry.How can the CLI team reproduce the problem?
git init && pbpaste | git apply && npm i
supporting information:
npm -v
prints: 5.3.0node -v
prints: v6.11.3npm config get registry
prints: http://registry.npmjs.org/The text was updated successfully, but these errors were encountered: