[BUG] npm install hangs in offline mode due to trying to run audit #4368
Labels
Bug
thing that needs fixing
Priority 2
secondary priority issue
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I have
offline=true
set in/etc/npmrc
so that all npm invocations are offline. However, doing annpm install
of a local directory with all dependencies included hangs due to npm seemingly trying to audit dependencies which presumably requires an internet connection (running with--ddd
showsnpm sill audit bulk request failed undefined
).Expected Behavior
npm offline mode should be truly offline and npm should not try to audit dependencies if it requires a network connection.
Steps To Reproduce
npm config set offline true
npm install -g package/
Environment
The text was updated successfully, but these errors were encountered: