Skip to content

[BUG] Can't install repository "unsupported option "accept-new"." #3233

@riccardomessineo

Description

@riccardomessineo

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I'm not able to install private npm dependencies that are used inside my package.json.

npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/foo/bar.git
npm ERR! command-line line 0: unsupported option "accept-new".
npm ERR! fatal: Could not read from remote repository.

I thought wasn't related to npm cli, but:

  1. I can successfully clone the repo on the same machine using ssh
  2. yarn install works fine

Openssh version is 7.4p1-21.el7.

Is this a known problem?
Thanks

Expected Behavior

A successful install

Steps To Reproduce

No response

Environment

  • OS: Centos 7
  • Node: 14.17.0
  • npm: 7.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions