Skip to content

[BUG] npm exec TypeError since v7.11.0 #3327

@uloco

Description

@uloco

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The npm exec command fails since version 7.11 (current is 7.15) with the following error message:

npm ERR! Cannot read property 'log' of undefined

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/uloco/.npm/_logs/2021-05-28T10_13_19_234Z-debug.log

I tried switching versions with fnm and nvm and node exec runs without errors on v7.10.0

Expected Behavior

Interactive mode should be entered

Steps To Reproduce

  1. Install latest node and npm with nvm (at least that's my scenario)
  2. Run 'npm exec'
  3. npm ERR! Cannot read property 'log' of undefined

Environment

  • OS: MacOS 11.3.1 (20E241)
  • Node: 16.2.0
  • npm: 7.15.0 (but fails since 7.11.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingPriority 1high priority issueRelease 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