question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gatsby serve - Hint: "Did you mean this? serve" - confused🥴

See original GitHub issue

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.

Screenshot 2019-07-25 at 22 13 40

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® Xeon® 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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
sidharthachatterjeecommented, Aug 1, 2019

I just stopped by to say that 🥴 is a great emoji and we can imagine your sentiment 😂

1reaction
vdespacommented, Aug 5, 2019

Great, thanks for the quick fix @m-allanson

Read more comments on GitHub >

github_iconTop Results From Across the Web

Commands (Gatsby CLI)
The Gatsby command line interface (CLI) is the main tool you use to initialize, build and develop Gatsby sites. How to use gatsby-cli....
Read more >
Iykyk #fyp #bartenderlife #bar #drinks #shots #rumpleminze # ...
TikTok video from The Okay Gatsby (@theokaygatsby): "Iykyk #fyp #bartenderlife #bar #drinks ... What it's like getting served by me at the bar...
Read more >
How to Install, Setup, Build and Deploy Gatsby JS ... - YouTube
Gatsby JS is one of the best tools in which to build websites with. It's fast, agile but the initial entry to using...
Read more >
#if that means a thing which you spent too much time doing ...
It occurs to him that she's simply too young to understand both risk and consequence. She knows that Tommy Shelby dotes on her...
Read more >
#i'll post the rest when af ends! | Explore Tumblr ...
That doesn't mean we'll never see her again, but she's served her purpose as of ... i have important thing to do" now...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found