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

Could not find a suitable version of gatsby-cli #34477

Closed
2 tasks done
endersaka opened this issue Jan 13, 2022 · 1 comment · Fixed by #34482
Closed
2 tasks done

Could not find a suitable version of gatsby-cli #34477

endersaka opened this issue Jan 13, 2022 · 1 comment · Fixed by #34482
Labels
status: confirmed Issue with steps to reproduce the bug that’s been verified by at least one reviewer. topic: cli Related to the Gatsby CLI type: bug An issue or pull request relating to a bug in Gatsby

Comments

@endersaka
Copy link

Preliminary Checks

Description

NOTE: I filled a fake URL to be able to publish the issue. In fact there is no reproducible Gatsby App test case, the issue is during project creation with Gatsby CLI, well before I even start to work on the Web App code.

After running npx gatsby new and making my choices, I got:

create-gatsby version 2.5.0



                                                   Welcome to Gatsby!



This command will generate a new Gatsby site for you in D:\Documents\Dev\projects\fullpipeumbrella\migration with the
setup you select. Let's answer some questions:



What would you like to call your site?
√ · Full Pipe Umbrella (Gatsby)
What would you like to name the folder where your site will be created?
√ migration/ gatsby_site_root
√ Will you be using a CMS?
· No (or I'll add it later)
√ Would you like to install a styling system?
· Sass
√ Would you like to install additional features with other plugins?
· Add the Google Analytics tracking script
· Add responsive images
· Add page meta tags with React Helmet
· Add an automatic sitemap
· Generate a manifest file

Great! A few of the selections you made need to be configured. Please fill in the options for each plugin now:


√ Configure the gatsby-plugin-google-analytics plugin.


Thanks! Here's what we'll now do:

    Create a new Gatsby site in the folder gatsby_site_root
    Get you set up to use Sass for styling your site
    Install gatsby-plugin-google-analytics, gatsby-plugin-image, gatsby-plugin-react-helmet, gatsby-plugin-sitemap,
gatsby-plugin-manifest, gatsby-plugin-mdx


√ Created site from template
√ Installed Gatsby
√ Installed plugins
√ Created site in gatsby_site_root
Setting-up plugins...
looking in old place

 ERROR

× Could not find a suitable version of gatsby-cli. Please report this issue at
https://www.github.com/gatsbyjs/gatsby/issues

Your new Gatsby site Full Pipe Umbrella (Gatsby) has been successfully created
at D:\Documents\Dev\projects\fullpipeumbrella\migration\gatsby_site_root.
Start by going to the directory with

  cd gatsby_site_root

Start the local development server with

  npm run develop

See all commands at

  https://www.gatsbyjs.com/docs/gatsby-cli/

Reproduction Link

https://noneed.dev

Steps to Reproduce

  1. Launch npx gatsby new
  2. Select the same options I choosen (you can find them in the output)

Expected Result

I would expect no error at all.

Actual Result

After installing plugins the CLI reports an error:

ERROR

× Could not find a suitable version of gatsby-cli. Please report this issue at
https://www.github.com/gatsbyjs/gatsby/issues

Environment

System:
    OS: Windows 10 10.0.19043
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
  Binaries:
    Node: 16.13.2 - D:\Program Files\nodejs\node.EXE
    npm: 8.1.4 - D:\Program Files\nodejs\npm.CMD
  Languages:
    Python: 3.9.7
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (97.0.1072.55)
  npmGlobalPackages:
    gatsby-cli: 4.5.1

Config Flags

No response

@endersaka endersaka added the type: bug An issue or pull request relating to a bug in Gatsby label Jan 13, 2022
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jan 13, 2022
@LekoArts LekoArts added status: confirmed Issue with steps to reproduce the bug that’s been verified by at least one reviewer. topic: cli Related to the Gatsby CLI and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jan 13, 2022
@LekoArts
Copy link
Contributor

Thanks for the report! I'm also seeing this with the latest version of the CLI. It's coming from https://github.com/gatsbyjs/gatsby/blob/master/packages/create-gatsby/src/install-plugins.ts#L42 and most likely has to do with the removal of gatsby-recipes in #34094

We'll get it fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: confirmed Issue with steps to reproduce the bug that’s been verified by at least one reviewer. topic: cli Related to the Gatsby CLI type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants