cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] DeprecationWarning for git+ssh:// dependencies

Open shivamconan opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

This issue exists in the latest npm version

  • [X] I am using the latest npm

Current Behavior

We are facing DEP0170 behavior in latest NPM.

{
  "dependencies": {
    "something-private": "git+ssh://git@<url>.example.com:group/project.git#commitish"
  }
}

throws - The URL is invalid. Future versions of Node.js will throw an error.

Expected Behavior

URL should work as mentioned in documentation?

Steps To Reproduce

Install npm 10.9.0 Install node 22.9.0 Specify a dependency as mentioned above yarn install

Environment

  • npm:
  • Node.js:
  • OS Name:
  • System Model Name:
  • npm config:
; copy and paste output from `npm config ls` here

shivamconan avatar Oct 16 '24 09:10 shivamconan

Are you doing yarn install or npm install ?

milaninfy avatar Oct 17 '24 13:10 milaninfy

Closing due to age. If this is still a problem please feel free to reopen this issue, or create a new issue w/ steps to reproduce.

milaninfy avatar Oct 30 '24 12:10 milaninfy