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 run dosent work in v8.1.3 #4020

Closed
2 tasks done
krush11 opened this issue Nov 9, 2021 · 0 comments
Closed
2 tasks done

[BUG] npm run dosent work in v8.1.3 #4020

krush11 opened this issue Nov 9, 2021 · 0 comments
Labels
Bug thing that needs fixing Priority 2 secondary priority issue Release 8.x work is associated with a specific npm 8 release

Comments

@krush11
Copy link

krush11 commented Nov 9, 2021

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

I have set up npm autocomplete in my bashrc.
While trying to run npm scripts, I type npm run and hit tab for auto-completion options (list of all the scripts in my package.json), I don't get any options but get the list of my files and folders

Expected Behavior

On hitting tab, I should have got the 3-4 scrips I had setup in package.json

Steps To Reproduce

  1. This bug is only there in npm@8.1.3. (I verified it for 8.1.1 and 8.1.2)
  2. Setup package.json with a few scripts (say start, build, deploy etc.)
  3. npm run (and hit tab to get autocomplete suggestions)
  4. You should see the list of files and folders inside the directory as suggestions instead of the script tags you setup

Environment

  • npm: 8.1.3
  • Node: 16.13.0
  • OS: Ubuntu 20.04
  • platform: Acer Swift 3
  • npm config:
; node bin location = /usr/bin/node
; cwd = /home/krush/augmatech/aurora
; HOME = /home/krush
; Run `npm config ls -l` to show all defaults.
@krush11 krush11 added Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release labels Nov 9, 2021
wraithgar added a commit that referenced this issue Nov 10, 2021
The fake npm object in the tests wasn't returning an async function

Fixes: #4020
@wraithgar wraithgar added Priority 2 secondary priority issue and removed Needs Triage needs review for next steps labels Nov 10, 2021
wraithgar added a commit that referenced this issue Nov 10, 2021
The fake npm object in the tests wasn't returning an async function

Fixes: #4020

PR-URL: #4032
Credit: @wraithgar
Close: #4032
Reviewed-by: @lukekarrys
@fritzy fritzy mentioned this issue Nov 18, 2021
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 2 secondary priority issue Release 8.x work is associated with a specific npm 8 release
Projects
None yet
Development

No branches or pull requests

2 participants