Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
I have offline=true
set in /etc/npmrc
so that all npm invocations are offline. However, doing an npm 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
shows npm 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
- npm: 8.1.2
- Node.js: v16.13.1
- OS Name: RHEL 8
- System Model Name: HP Laptop
- npm config:
offline = true
prefix = "/usr/local"
python = "/usr/bin/python3"