-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
nvm install-latest-npm
fails with "Cannot find module 'agentkeepalive'"
#2438
Comments
For node 15, this is the same as |
Also, are you on an M1 mac? |
I did not try Yes, M1 Mac |
How did you install node on an M1 Mac? (I'm asking since node isn't supported there, so I don't know which workaround you used, and that might affect some dependencies of npm). Can you try |
I used nvm: Sure, I can try installing npm with npm later today EDIT: node was original ported over to my M1 mac via Time Machine from a previous installation from an intel-based mac. That version had been installed via homebrew; then I needed to have an older version to test a regression, so I foolishly installed via the official nodejs.org installer. I uninstalled that version (what a pain in the a**) and also the homebrew one and installed the latest via nvm (that version had not been previously installed at all). |
Ah, then presumably your terminal is running in rosetta emulation mode? |
Yes, I think I saw that somewhere. Do you know how to verify that? |
I believe |
$> node -p process.arch
x64 |
|
Just to be clear: you're seeing this problem both on node 15.6 (that you'd previously installed) as well as a newly-installed node 15.8? |
No: 15.6 (installed with nvm) was fine, no errors. The latest npm was also installed at the same time. |
Can you try |
@ljharb I was having the same issue on m1 mac. this command |
No dice. But I think something else unrelated is happening here
|
@JakobJingleheimer that error is due to node having no support for M1 Macs, and you'll need to follow the steps in the M1 section of the readme to ensure your shell is in the emulated architecture when installing node. |
Hmm, strangely I didn't have any trouble installing 15.6 or 15.8. I'll try those special M1 instructions though (thanks!) |
It also might be a bug with the npm version that ships with 15.7. |
It is something to do with
|
hm, 7.5.4 should def be installed; if |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Hm weird. I had the same error, but when I used |
Installing this npm install -g agentkeepalive --save then upgrading npm worked for me. |
This comment has been minimized.
This comment has been minimized.
Strangely, (I didn't have to set I updated from npm 7.6.0 → 7.7.5, and node 15.11.0 → 15.12.0 |
@JakobJingleheimer the order to make those the same would have to be nvm install node, and then nvm install-latest-npm. |
I'm sure what you mean @ljharb, but I did have to run |
@JakobJingleheimer i just mean, "nvm install-latest-npm and then nvm install node" isn't the same as "nvm install node --latest-npm". "nvm install node --latest-npm" is the same as |
Reading the comments, it isn't clear to me how this issue was resolved. Here is what I am seeing ([email protected], [email protected], [email protected]):
And Was this closed because it is a problem with Update I found nodejs/help#3207 and saw the suggestion to run |
I know this is closed, but on a non-M1 Macbook Pro, it fails as well. Tried;
|
@HawaiiRyan this is an issue with npm; please file it there. |
I had the same feedback on Windows 10. Installing the latest Node, going from v14.16.0 to v15.14.0, fixed it for me. |
|
Operating system and version:
macOS 11.2 Big Sur
nvm debug
output:nvm ls
output:How did you install
nvm
?What steps did you perform?
What happened?
I installed the latest version of NodeJS and forgot to include the extra
--latest-npm
flag. After node v15.8 finished, I rannvm install-latest-npm
nvm command output
The text was updated successfully, but these errors were encountered: