-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
gatsby serve - Hint: "Did you mean this? serve" - confused🥴 #16092
Comments
This looks very strange. It seems like the Are you able to replicate this error when running locally? And are you able to share the project that causes this error? |
Thank you for your reply @m-allanson . I have managed to replicate this locally as well. It seems that |
I just stopped by to say that 🥴 is a great emoji and we can imagine your sentiment 😂 |
Great, thanks for the quick fix @m-allanson |
This still happens.... |
@molebox pointed out we should instruct users to use `gatsby develop` instead of `gatsby serve` to avoid issues the first time through the guide https://forum.moovweb.com/t/skip-global-xdn-npm-install/140/3 gatsbyjs/gatsby#16092
Summary
I am cloning the repo, running
npm install
and copying the public folder from a previous pipeline step.If run
gatsby serve
, it returns an exit code 1.If I run gatsby build again, it works.
Relevant information
I am running gatsby serve in my CI/CD pipeline. The "error" that is coming back is very confusing.
Any ideas what the problem is?
Environment (if relevant)
gatsby info --clipboard
System:
OS: Linux 4.19 Debian GNU/Linux 9 (stretch) 9 (stretch)
CPU: (1) x64 Intel(R) Xeon(R) CPU @ 2.30GHz
Shell: 4.4.12 - /bin/bash
Binaries:
Node: 10.16.0 - /usr/local/bin/node
Yarn: 1.16.0 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Languages:
Python: 2.7.13 - /usr/bin/python
npmPackages:
gatsby: ^2.13.31 => 2.13.31
gatsby-image: ^2.2.6 => 2.2.6
gatsby-plugin-manifest: ^2.2.3 => 2.2.3
gatsby-plugin-offline: ^2.2.4 => 2.2.4
gatsby-plugin-react-helmet: ^3.1.2 => 3.1.2
gatsby-plugin-sharp: ^2.2.8 => 2.2.8
gatsby-source-filesystem: ^2.1.5 => 2.1.5
gatsby-transformer-sharp: ^2.2.4 => 2.2.4
npmGlobalPackages:
gatsby-cli: 2.7.20
The text was updated successfully, but these errors were encountered: