gatsby: Cannot find module 'gatsby-cli/lib/reporter'
After updating from gatsby 2.24.36 to version 2.24.40 getting error on npm start: Error in “/Users/Austin/Projects/schwayweb/node_modules/gatsby-plugin-page-creator/gatsby-node.js”: Cannot find module ‘gatsby-cli/lib/reporter’
entire output here: https://gist.github.com/theskillwithin/2482854d8aa23e91885799925516c833
System:
OS: macOS 10.15.6
CPU: (12) x64 Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.14.1 - ~/.nvm/versions/node/v12.14.1/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.6 - ~/.nvm/versions/node/v12.14.1/bin/npm
Languages:
Python: 2.7.17 - /usr/local/bin/python
Browsers:
Chrome: 84.0.4147.105
Firefox: 79.0
Safari: 13.1.2
npmPackages:
gatsby: ^2.24.40 => 2.24.40
gatsby-background-image: ^1.1.1 => 1.1.1
gatsby-image: ^2.4.15 => 2.4.15
gatsby-plugin-emotion: ^4.3.10 => 4.3.10
gatsby-plugin-google-analytics: ^2.3.13 => 2.3.13
gatsby-plugin-layout: ^1.3.10 => 1.3.10
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-root-import: ^2.0.5 => 2.0.5
gatsby-plugin-sharp: ^2.6.26 => 2.6.26
gatsby-source-contentful: ^2.3.36 => 2.3.36
gatsby-source-filesystem: ^2.3.24 => 2.3.24
gatsby-source-shopify: ^3.2.26 => 3.2.26
gatsby-transformer-remark: ^2.8.28 => 2.8.28
gatsby-transformer-sharp: ^2.5.12 => 2.5.12
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 14
- Comments: 23 (10 by maintainers)
Commits related to this issue
- Bump gatsby version to fix Netlify build error. https://github.com/gatsbyjs/gatsby/issues/26345 — committed to psiu-gt/psiu-gt by deleted user 4 years ago
- chore: initial Frames demo 578e005 improve(pages): update theming page with Sidebar and initial content b54393b improve(components): initial ThemeColorPicker implementation 1f883c1 chore(components):... — committed to buninux/buninux.github.io by danithecake 4 years ago
- chore: initial Frames demo 788cce9 chore(package): add path prefix to correct hosting demo on buninux.github.io/frames 578e005 improve(pages): update theming page with Sidebar and initial content b54... — committed to buninux/buninux.github.io by danithecake 4 years ago
- chore: initial Frames demo 788cce9 chore(package): add path prefix to correct hosting demo on buninux.github.io/frames 578e005 improve(pages): update theming page with Sidebar and initial content b54... — committed to buninux/buninux.github.io by danithecake 4 years ago
Fixed and published in
gatsby@2.24.42
courtesy of @pvdznpm i -D gatsby-cli
fixed my Netlify deploy.I assume I’ll be able to remove this dependency once the underlying issue is resolved?
For anyone who is still having problems getting this to work, especially on a new install, I had to delete the
package-lock.json
and then manually change thepackage.json
entry forgatsby
to^2.24.42
from^2.24.41
in order to get this fix.Unfortunately I’m having the same issue when I try to
gatsby develop
in my project. I even did:(With gatsby-cli installed globally).