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.

"Error: Cannot find module 'gatsby-cli/lib/reporter’” when starting an app. Library upgrade required?

See original GitHub issue

Description

When I create a new app and run it I get the error Error: Cannot find module 'gatsby-cli/lib/reporter’

I believe the version of gatsby needs to be upgraded, per this issue:

https://github.com/gatsbyjs/gatsby/issues/26345

The application is currently being generated with version 2.24.41, rather than 2.24.42

Steps to reproduce

npx gatsby new app
cd app
npm install
nom run start

Expected result

App should start

Actual result

Received the error: Error: Cannot find module 'gatsby-cli/lib/reporter’

Environment

System: OS: macOS Mojave 10.14.6 CPU: (4) x64 Intel® Core™ i5-4260U CPU @ 1.40GHz Shell: 3.2.57 - /bin/bash Binaries: Node: 10.17.0 - ~/.nvm/versions/node/v10.17.0/bin/node Yarn: 1.12.3 - /usr/local/bin/yarn npm: 6.11.3 - ~/.nvm/versions/node/v10.17.0/bin/npm Languages: Python: 2.7.16 - /usr/bin/python Browsers: Chrome: 84.0.4147.125 Firefox: 79.0 Safari: 13.1.2 npmPackages: gatsby: ^2.24.41 => 2.24.41 gatsby-image: ^2.4.15 => 2.4.15 gatsby-plugin-manifest: ^2.4.22 => 2.4.22 gatsby-plugin-offline: ^3.2.23 => 3.2.23 gatsby-plugin-react-helmet: ^3.3.10 => 3.3.10 gatsby-plugin-sharp: ^2.6.26 => 2.6.26 gatsby-source-filesystem: ^2.3.24 => 2.3.24 gatsby-transformer-sharp: ^2.5.12 => 2.5.12

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

2reactions
PulseADcommented, Aug 16, 2020

Well, I also made it working by making a npm update.

0reactions
dogriffithscommented, Aug 22, 2020

This problem appears to now be fixed. Creating a project with npx gatsby new my-app now generates a project with gatsby version 2.24.47 which avoids the library issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Cannot find module 'gatsby-cli/lib/reporter' · Issue #14875
Description When trying to do gatsby build, I'm noticing that my custom source plugins as well as Gatsby packages are trying to find...
Read more >
76 - Stack Overflow
My solution was to just delete the directory /node_modules/ and to make a fresh install afterwards with npm install .
Read more >
Find your apps in App Library on iPhone - Apple Support
In App Library on iPhone, easily find your apps organized into categories—Social, Travel, Entertainment, and so on—and open them.
Read more >
Fix Global Installs Not Working | "Cannot find module" error FIX
Getting " Cannot find module " after installing something globally (with -g)? Well, this video shows you how to fix global package/module ...
Read more >
Using the Android for Cars App Library
For example, updating the toggle state of a row in a ListTemplate does not count against the quota. See the documentation of individual...
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