"Error: Cannot find module 'gatsby-cli/lib/reporter’” when starting an app. Library upgrade required?
See original GitHub issueDescription
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:
- Created 3 years ago
- Reactions:3
- Comments:7
Top GitHub Comments
Well, I also made it working by making a npm update.
This problem appears to now be fixed. Creating a project with
npx gatsby new my-app
now generates a project with gatsby version2.24.47
which avoids the library issue.