Repro script:
# run in npm/cli repo
set -x
rm -rf node_modules package-lock.json
git checkout node_modules
rm node_modules/.gitignore node_modules/.package-lock.json
node . i --no-audit --ignore-scripts
node . ls @babel/core # apparently ok, only bundled under tap
rm node_modules/.package-lock.json # remove the hidden lockfile
node . ls @babel/core # ohno! babel cores all over the place!
- Why is the hidden lockfile being respected, when there are clearly package folders not found in its list?
- Why is Arborist installing
@babel/core v7.11 when the only thing depending on it has a copy from the bundle?