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

New LTS 20.9.0 uses npm 10.1.0 which has issues with proxy config #50376

Closed
lscorcia opened this issue Oct 24, 2023 · 6 comments
Closed

New LTS 20.9.0 uses npm 10.1.0 which has issues with proxy config #50376

lscorcia opened this issue Oct 24, 2023 · 6 comments
Assignees

Comments

@lscorcia
Copy link

lscorcia commented Oct 24, 2023

Version

v20.8.1

Platform

Linux 4f5c14380cd5 5.4.0-165-generic #182-Ubuntu SMP Mon Oct 2 19:43:28 UTC 2023 x86_64 GNU/Linux

Subsystem

npm

What steps will reproduce the bug?

$docker run --rm -it node:20 /bin/bash
root@4f5c14380cd5:/# npm --version
10.1.0

Also see https://github.com/nodejs/node/tree/v20.9.0/deps . The latest commit for npm clearly states that npm 10.1.0 is used.

How often does it reproduce? Is there a required condition?

100% reproducible

What is the expected behavior? Why is that the expected behavior?

npm 10.1.0 is affected by regression npm/cli#6835 , already fixed in npm 10.2.0. We use only node LTS for our CI/CD pipelines. Also, our company requires a proxy to access all external resources. Since LTS switched from 18 to 20, all builds fail. Node LTS v20 should ship with a working version of npm.

What do you see instead?

Node LTS v20 ships with a broken npm package. Since it does not pick up the proxy settings, we can't even update it inside the container as it does not reach the registry.

Additional information

No response

@lscorcia lscorcia changed the title New LTS 20 uses npm 10.1.0 which has issues with proxy config New LTS 20.9.0 uses npm 10.1.0 which has issues with proxy config Oct 24, 2023
@mhdawson
Copy link
Member

@nodejs/npm

@mhdawson
Copy link
Member

There is already a PR to update in main here - #50258

@lscorcia
Copy link
Author

Main already uses npm 10.2.0 which fixes the proxy problem. This issue is about the 20.9.0 release. npm >= 10.2.x should be backported in the 20.9.x LTS release line.

@lukekarrys
Copy link
Member

npm 10.2.0 landed in main here: #50027

I believe the next Node 20 release will include an update to npm@10.2.0 (or 10.2.1 if #50258 lands before that).

We can keep this issue open until that is released, but I don't believe there is any work to do here.

@lukekarrys lukekarrys self-assigned this Oct 26, 2023
alexmurray added a commit to alexmurray/pyright-snap that referenced this issue Nov 1, 2023
This reverts commit 2e0d58f since npm is broken
behind proxies nodejs/node#50376 and so pyright fails
to build on Launchpad.
alexmurray added a commit to alexmurray/copilot-client-snap that referenced this issue Nov 1, 2023
This reverts commit 03a0cd2 since npm is broken
behind proxies nodejs/node#50376 and so copilot-client
fails to build on Launchpad.
alexmurray added a commit to alexmurray/typescript-language-server-snap that referenced this issue Nov 1, 2023
This reverts commit 33eb19c since npm is broken
behind proxies nodejs/node#50376 and so
typescript-language-server fails to build on Launchpad.
@silverwind
Copy link
Contributor

node v20.10.0 was released with npm v10.2.3.

@lscorcia
Copy link
Author

I can confirm the issue is solved by updating to the latest LTS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants