Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] npm install hangs in offline mode due to trying to run audit #4368

Closed
2 tasks done
mohd-akram opened this issue Feb 3, 2022 · 0 comments · Fixed by #4410
Closed
2 tasks done

[BUG] npm install hangs in offline mode due to trying to run audit #4368

mohd-akram opened this issue Feb 3, 2022 · 0 comments · Fixed by #4410
Labels
Bug thing that needs fixing Priority 2 secondary priority issue Release 8.x work is associated with a specific npm 8 release

Comments

@mohd-akram
Copy link
Contributor

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

  1. npm config set offline true
  2. 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" 
@mohd-akram mohd-akram added Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release labels Feb 3, 2022
@nlf nlf added Priority 2 secondary priority issue and removed Needs Triage needs review for next steps labels Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Priority 2 secondary priority issue Release 8.x work is associated with a specific npm 8 release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants