New gatsby-cli installation on ubuntu (wsl2) shows errors when running the command `gatsby` in terminal
See original GitHub issuePreliminary Checks
- This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues
- This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
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:
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
- npm i -g gastby-cli
- gatsby
- gatsby --verbose
Expected Result
create a new gatsby project without errors.
Actual Result
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:
- Created 2 years ago
- Comments:9 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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!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.