Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
uloco opened this issue May 28, 2021 · 1 comment
Closed
1 task done

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

uloco opened this issue May 28, 2021 · 1 comment
Labels
Bug thing that needs fixing Priority 1 high priority issue Release 7.x work is associated with a specific npm 7 release

Comments

@uloco
Copy link

uloco commented May 28, 2021

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)
@uloco uloco added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels May 28, 2021
@nlf nlf added Priority 1 high priority issue and removed Needs Triage needs review for next steps labels May 28, 2021
ruyadorno added a commit to ruyadorno/libnpmexec that referenced this issue May 31, 2021
- Fixes `npm exec` interactive shell
- Relates to: npm/cli#3327
ruyadorno added a commit to ruyadorno/libnpmexec that referenced this issue May 31, 2021
- Fixes `npm exec` interactive shell
- Relates to: npm/cli#3327
ruyadorno added a commit to ruyadorno/libnpmexec that referenced this issue May 31, 2021
- Fixes `npm exec` interactive shell
- Relates to: npm/cli#3327

PR-URL: npm#4
Credit: @ruyadorno
Close: npm#4
Reviewed-by: @darcyclarke
@wraithgar
Copy link
Member

This was fixed in v7.15.1. Please reopen if you are still having this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Priority 1 high priority issue Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

No branches or pull requests

3 participants