What I Wanted to Do
npm install <some package with a ‘main’ field in package.json that points to a .js file in a sub-directory of the package>
What Happened Instead
the package gets installed but there is no ‘main’ field in package.json
Reproduction Steps
npm install <some package with a ‘main’ field in package.json that points to a .js file in a sub-directory of the package>
Details
Note that npm version 6.3.0 and 6.1.0 work fine, so this is introduced somewhere after 6.3.0.
We use the Verdaccio NPM registry so maybe there is something about that.
Platform Info
$ npm --versions
6.4.1
$ node -p process.platform
win32