Skip to content

[BUG] npm ERR! Cannot destructure property 'name' of 'node' as it is null. #2548

Closed
@dmnsgn

Description

@dmnsgn

Opening a new issue as requested by @isaacs #1832 (comment)

Current Behavior:

Installing a dependency from a GitHub URL fails.

Expected Behavior:

Dependency is installed without error.

Steps To Reproduce:

npm init -y
npm i -D git://github.com/GoogleChromeLabs/critters.git

Yields:

npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js install --cache=/Users/my-name/.npm/_cacache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit
npm ERR! npm ERR! code ERESOLVE
npm ERR! npm ERR! Cannot destructure property 'name' of 'node' as it is null.

Environment:

  • OS: MacOS 10.15.6
  • Node: v15.5.1
  • npm: 7.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingRelease 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