Skip to content

[BUG] "Cannot destructure property 'package' of 'node.target' as it is null" (@eslint/css) #8126

Open
@MikeMcC399

Description

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

For the npm module @eslint/css (release css-v0.4.0), a second invocation of npm install @eslint/[email protected] results in:

npm error Cannot destructure property 'package' of 'node.target' as it is null.

Logs:
eslint-css.log

Expected Behavior

No error when repeating npm install @eslint/[email protected]

Steps To Reproduce

Execute the following in a bash terminal window:

cd $(mktemp -d)
npm init -y
npm install @eslint/[email protected]
npm install @eslint/[email protected]

Environment

npm: 11.1.0
Node.js: v22.14.0 LTS
OS Name: Ubuntu 24.04.2 LTS
System Model Name: VMware Workstation in Windows 11 x86

; node bin location = /home/mike/n/bin/node
; node version = v22.14.0
; npm local prefix = /tmp/tmp.SZuouQJBNk
; npm version = 11.1.0
; cwd = /tmp/tmp.SZuouQJBNk
; HOME = /home/mike

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions