[BUG] dependency of a dependency isn't installed when using npm ci --only=production
#979
Labels
Bug
thing that needs fixing
npm ci --only=production
#979
What / Why
hi! i have a nextjs project that is dependent on
@babel/core
. in my ci build (npm ci --only=production
),@babel/core
isn't included, and is failing my build.when i load up my node console, i also am not seeing
@babel/core
.my current workaround is to recreate my entire package-lock, but i'd rather not do that, as i'd be updating more dependencies than i'd want to at the moment.
When
Where
i uploaded my project's package.json/package-lock.json to this repo without any source code
this line should be telling npm to install
@babel/core
, right? https://github.com/dlcoffee/npm-problem/blob/master/package-lock.json#L14356How
Current Behavior
@babel/core
not installed when it is a dependency ofnext
Steps to Reproduce
npm ci --only=production
node
require('@babel/core')
Expected Behavior
npm ci --only=production
node
require('@babel/core')
Who
References
The text was updated successfully, but these errors were encountered: