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.

New gatsby-cli installation on ubuntu (wsl2) shows errors when running the command `gatsby` in terminal

See original GitHub issue

Preliminary Checks

Description

I just recently installed gatsby-cli on ubuntu 20 and every time I run the command gatsby on the command line it shows error on multiple areas. I run the same command gatsby --verbose as advised by gatsby message but it produces the exact same error. Here is a screenshot:

image

this also prevents me from setting up projects using gatsby templates. the command throws an error when running gatsby install with a template url.

Reproduction Link

https://gatsby.dev/reproduction

Steps to Reproduce

  1. npm i -g gastby-cli
  2. gatsby
  3. gatsby --verbose

Expected Result

create a new gatsby project without errors.

Actual Result

image

Environment

System:
    OS: Linux 5.10 Ubuntu 20.04.3 LTS (Focal Fossa)
    CPU: (16) x64 AMD Ryzen 9 5900HX with Radeon Graphics
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
    Yarn: 1.22.15 - ~/.nvm/versions/node/v16.13.0/bin/yarn
    npm: 8.1.4 - ~/.nvm/versions/node/v16.13.0/bin/npm
  npmGlobalPackages:
    gatsby-cli: 4.2.0

Config Flags

No response

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Omar8345commented, Apr 12, 2022

@ManiMuridi, dear this is not an error, Gatsby expects that you input a command like the following:

gatsby <command> [options]

So, it is not expected to get that… So if you need help, gatsby help… Hope this helps!

0reactions
AndrewSerracommented, May 5, 2022

Are there any specific error code number meanings so I can add one? They don’t seem to be incrementing so I wasn’t sure. That way I can attach a message to it as well. It took me a while to go through the code and understand how things interact.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install Gatsby.js on Windows | Microsoft Learn
Open your WSL terminal (ie. · Create a new project folder: mkdir GatsbyProjects and enter that directory: cd GatsbyProjects · Use npm to...
Read more >
npm install -g gatsby-cli is not working when im trying to install ...
make sure you could installed node, after that run node version command: node -v if you'll getting some error so please install node...
Read more >
Commands (Gatsby CLI)
Install it globally with npm install -g gatsby-cli , where you execute commands with the syntax gatsby new , or; Run commands directly...
Read more >
Using Graphical User Interfaces like Cypress' in WSL2
Close your terminal and open up a new one in the location you want to ... in the directory I installed Cypress and...
Read more >
npm install cannot read properties of null (reading 'children')
Aug 21, 2021 at 18:39. Try this command in your terminal for your first warning, 1.$ npm cache clean --force 2.delete node_modules by...
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