Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

371
Views
Cannot find module 'agentkeepalive' when updating NPM to 7.20.3

When I'm trying to update npm to 7.20.3 (npm install -g npm@7.20.3), npm throws :

npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'agentkeepalive'
npm ERR! Require stack:
npm ERR! - /Users/ShaggyRogers/.nvm/versions/node/v14.16.0/lib/node_modules/npm/node_modules/make-fetch-happen/agent.js
...
over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

This has been discussed on github

TL;DR;

It has been fixed in npm v7.17.0 and newer. I managed to upgrade from 7.10.0 to 7.21.0 and avoid this error entirely (and not dealing with agentkeepalive) by upgrading first to 7.17.0 and then to 7.21.0.

over 4 years ago · Santiago Trujillo Report

0

In order to quickly fix this error just install or re-install globally agentkeepalive :

npm install -g agentkeepalive --save

Then update npm :

npm install -g npm@7.20.3

UPDATE :

Since June 23 2021, the bug seems to be fixed in v7.17.0 (GitHub issue)

You can first upgrade to v7.17.0:

npm install -g npm@7.17.0

Then upgrade to the last version of npm :

npm install -g npm@7.21.0

or

npm install -g npm@latest
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!