-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
npm cli built into NodeJS 16.18.0 (npm cli 8.19.2) broken with git+ssh urls #44992
Comments
cc @nodejs/npm |
I'm unable to replicate this with the same Node.js and npm versions on macOS. Does it work from the command-line without a package.json entry, such as with this command?
$ node -v
v16.18.0
$ npm -v
8.19.2
$ npm install 'git+ssh://git@github.com/Trott/slug.git#v8.2.2'
added 1 package, and audited 2 packages in 3s
found 0 vulnerabilities
$ |
@Trott We are pointing to our own internal git repository. |
Refs: npm/cli#5278 |
@Trott I can install your repo but not our internal repo. Again, this is the issues with npm cli 8.19.2.
However when I try to manually install our internal git repository
Again, this wasn't an issue with NodeJS 16.17.1 which includes npm cli version:8.15.0. If I downgrade to NPM cli 8.15.0, it works. (see below)
This is a SERIOUS issues from npm cli that breaks the current version included in the latest NodeJS versions (stable+latest) |
Hi, I have the same issue with node 16.18.0 (npm 8.19.2) on Windows 10. However, node 16.17.1 works fine. |
hmmm i did answer that just in the repo but i do not find it anyway the workaround is: npm switched to use new URL() that parser does not accept double : so you can simply change
example workaround
greetings. and yes this will stay working you can apply that to all your files. Linking Related issues there do come up a lot |
I have an open pull request that will fix this issue here: npm/cli#5758 It should land in the next couple days and be released as part of the |
This will land in the next release of |
GitHub auto-closed this cause luke had linked his PRs to this issue. Tomorrow's CLI release will include the fixes for this. |
* 16.18.0 (npm 8.19.2) introduced a regression in git+ssh urls - nodejs/node#44992 - npm/cli#5761 https://nodejs.org/ko/blog/release/v16.19.0/ License-Update: Clarify vendored OpenSSL Toolkit is OpenSSL and SSLeay License-Update: JS Foundation -> OpenJS Foundation nodejs/node@e7ed56f Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* 16.18.0 (npm 8.19.2) introduced a regression in git+ssh urls - nodejs/node#44992 - npm/cli#5761 https://nodejs.org/ko/blog/release/v16.19.0/ License-Update: Clarify vendored OpenSSL Toolkit is OpenSSL and SSLeay License-Update: JS Foundation -> OpenJS Foundation nodejs/node@e7ed56f Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Source: meta-openembedded MR: 124675 Type: Integration Disposition: Merged from meta-openembedded ChangeID: 278ec08 Description: * 16.18.0 (npm 8.19.2) introduced a regression in git+ssh urls - nodejs/node#44992 - npm/cli#5761 https://nodejs.org/ko/blog/release/v16.19.0/ License-Update: Clarify vendored OpenSSL Toolkit is OpenSSL and SSLeay License-Update: JS Foundation -> OpenJS Foundation nodejs/node@e7ed56f Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
* 16.18.0 (npm 8.19.2) introduced a regression in git+ssh urls - nodejs/node#44992 - npm/cli#5761 https://nodejs.org/ko/blog/release/v16.19.0/ License-Update: Clarify vendored OpenSSL Toolkit is OpenSSL and SSLeay License-Update: JS Foundation -> OpenJS Foundation nodejs/node@e7ed56f Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> (cherry picked from commit 278ec08)
* 16.18.0 (npm 8.19.2) introduced a regression in git+ssh urls - nodejs/node#44992 - npm/cli#5761 https://nodejs.org/ko/blog/release/v16.19.0/ License-Update: Clarify vendored OpenSSL Toolkit is OpenSSL and SSLeay License-Update: JS Foundation -> OpenJS Foundation nodejs/node@e7ed56f Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> (cherry picked from commit 278ec08)
* 16.18.0 (npm 8.19.2) introduced a regression in git+ssh urls - nodejs/node#44992 - npm/cli#5761 https://nodejs.org/ko/blog/release/v16.19.0/ License-Update: Clarify vendored OpenSSL Toolkit is OpenSSL and SSLeay License-Update: JS Foundation -> OpenJS Foundation nodejs/node@e7ed56f Signed-off-by: Tim Orling <tim.orling@konsulko.com>
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
and whenever we run 'npm install', It always shows an error.
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
The text was updated successfully, but these errors were encountered: