Nesting of directory resident packages fails


(Johngrabner) #1

What I Wanted to Do

My private project is broken up into multiple packages. Since these are all specific to this project, I keep them all in one GitHub repository. npm install at top level should install transitively all other packages. This example shows that one must npm install at the top level twice for the installation to succeed.

Logs do not indicate any specific failure.

What Happened Instead

Partial install on first npn install. Second npm install works.

Reproduction Steps

download https://github.com/johngrabner/why_npm_nesting_fails
cd to package_1
npm install
observe failure
npm install
observe it passed

Details

Platform Info

$ npm --versions
observed on windows npm -v = 6.5.0, also observed in docker image node:9.4
$ node -p process.platform
win32