Skip to content

npm cli built into NodeJS 16.18.0 (npm cli 8.19.2) broken with git+ssh urls #44992

Closed
@breisig

Description

@breisig

Version

v16.18.0

Platform

Rocky Linux 9

Subsystem

No response

What steps will reproduce the bug?

When compiling from source NodeJS 16.18.0, It installs npm cli version 8.19.2. We have a private url in our package.json file

"nodejs-elastic": "git+ssh://[email protected]:components/ourpackage.git#v2.0.1",

and whenever we run 'npm install', It always shows an error.

npm ERR! code ERR_INVALID_URL
npm ERR! Invalid URL

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/testuser/.npm/_logs/2022-10-13T15_53_58_387Z-debug-0.log

However, If I manually downgrade to the NPM CLI version included in NodeJS 16.17.1 (npm cli version:8.15.0), it runs without issue.

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

all the time with the new version

What is the expected behavior?

Installs normally without issue.

What do you see instead?

errors

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions