Skip to content

[BUG] ERR! this.idealTree.children.get is not a function #7029

@maksimr

Description

@maksimr

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

Get an error when try to install dependencies for specific workspace using "linked" strategy

mk bar \
  && pushd bar \
  && npm init -y \
  && npm init -y -w foo-1 \
  && npm install --install-strategy=linked -w foo-1

Expected Behavior

Install dependencies only for passed workspace using "linked" strategy

Steps To Reproduce

Darwin 23.2.0
node v20.9.0
npm  v10.1.0
  1. Run
mk /tmp/bar \
  && pushd /tmp/bar \
  && npm init -y \
  && npm init -y -w foo-1 \
  && npm install --install-strategy=linked -w foo-1
  1. See error:
npm ERR! this.idealTree.children.get is not a function

Environment

  • npm: v10.1.0
  • Node.js: v20.9.0
  • OS Name: Darwin 23.2.0
  • System Model Name: MacBook Air
  • npm config:
; node bin location = /Users/maksimrv/.nvm/versions/node/v20.9.0/bin/node
; node version = v20.9.0
; npm local prefix = /private/tmp/bar
; npm version = 10.1.0
; cwd = /private/tmp/bar
; HOME = /Users/maksimrv
; Run `npm config ls -l` to show all defaults.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions