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

"npx gatsby-cli --help" throws error #26496

Closed
detj opened this issue Aug 16, 2020 · 2 comments
Closed

"npx gatsby-cli --help" throws error #26496

detj opened this issue Aug 16, 2020 · 2 comments
Labels
type: bug An issue or pull request relating to a bug in Gatsby

Comments

@detj
Copy link
Contributor

detj commented Aug 16, 2020

Description

Running gatsby-cli via npx fails with error cb.apply is not a function

Steps to reproduce

  1. Make sure gatsby-cli is not installed globally
  2. Run npx gatsby-cli --help

Expected result

gatsby-cli should run the respective command. In this case, it should show the CLI help instructions. The error is same irregardless of the command being run. So, running npx gatsby-cli new <some-dir> also throws the same error.

Actual result

Got this error

npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/detj/.npm/_logs/2020-08-16T21_52_51_610Z-debug.log
Install for [ 'gatsby-cli@latest' ] failed with code 1

Environment

$ node -v
v12.18.3

$ npm -v
6.14.6

$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.15.6
BuildVersion:	19G2021
@detj detj added the type: bug An issue or pull request relating to a bug in Gatsby label Aug 16, 2020
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 16, 2020
@detj
Copy link
Contributor Author

detj commented Aug 19, 2020

this issue could be related to nodejs/help#2874

@detj
Copy link
Contributor Author

detj commented Aug 21, 2020

closing this issue as this is not really related to gatsby. see nodejs/help#2871, nodejs/help#2874 & nodejs/node#34162

@detj detj closed this as completed Aug 21, 2020
@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

2 participants