gatsby: `gatsby develop` crashes with latest versions of Gatsby and gatsby-cli

Description

Running gatsby develop isn’t working with latest versions of Gatsby and the cli. I know there’s already a lot of issues similar to this one (e.g https://github.com/gatsbyjs/gatsby/issues/23214, https://github.com/gatsbyjs/gatsby/issues/24577, https://github.com/gatsbyjs/gatsby/issues/24589, https://github.com/gatsbyjs/gatsby/issues/24325, https://github.com/gatsbyjs/gatsby/issues/24411, https://github.com/gatsbyjs/gatsby/issues/24577 and more…), but none of them describes my issue and I couldn’t find a solution in any of them.

When running gatsby develop (npm run develop) I get this error:

> gatsby-starter-default@0.1.0 develop C:\Users\Ori\code\new_agra_site
> gatsby develop

C:\Users\Ori\code\new_agra_site\node_modules\yoga-layout-prebuilt\yoga-layout\build\Release\nbind.js:53
        throw ex;
        ^

Error: spawn node ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn node',
  path: 'node',
  spawnargs: [
    'C:\\Users\\Ori\\code\\new_agra_site\\.cache\\tmp-13908-khO9CcGjekXB'
  ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! gatsby-starter-default@0.1.0 develop: `gatsby develop`
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the gatsby-starter-default@0.1.0 develop script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Ori\AppData\Roaming\npm-cache\_logs\2020-07-02T08_18_45_906Z-debug.log

I tried some things like running npm install and npm update. I also tried removing the local installation of the cli and installing it globally (as recommended in one of the issues mentioned above), but got the same result.

Steps to reproduce

Run gatsby develop with versions:

"gatsby": "^2.23.14",
"gatsby-cli": "^2.12.54",

Or checkout the repo here (staging branch).

Expected result

The development server is supposed to run locally.

Actual result

I get the error copied above.

Environment

System: OS: Windows 10 10.0.18362 CPU: (4) x64 Intel® Core™ i5-7200U CPU @ 2.50GHz Binaries: Node: 12.16.0 - C:\Program Files\nodejs\node.EXE npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD Languages: Python: 2.7.17 - C:\Python27\python.EXE Browsers: Edge: 44.18362.449.0 npmPackages: gatsby: ^2.23.14 => 2.23.14 gatsby-background-image: ^0.7.6 => 0.7.6 gatsby-cli: ^2.12.54 => 2.12.54 gatsby-image: ^2.4.11 => 2.4.11 gatsby-plugin-advanced-sitemap: ^1.5.5 => 1.5.5 gatsby-plugin-manifest: ^2.4.16 => 2.4.16 gatsby-plugin-offline: ^2.2.10 => 2.2.10 gatsby-plugin-react-helmet: ^3.3.8 => 3.3.8 gatsby-plugin-sharp: ^2.6.16 => 2.6.16 gatsby-source-filesystem: ^2.0.37 => 2.3.16 gatsby-source-wordpress: ^3.3.17 => 3.3.17 gatsby-transformer-sharp: ^2.5.9 => 2.5.9

Thanks a lot!!

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 24 (7 by maintainers)

Most upvoted comments

Hey @wardpeet the original issue that I raised is not solved. Why did you close this?

Same issue here, any way to exclude /yoga-layout-prebuilt?

@riccardolardi @tomthornton @zhenwan @samuelgoddard The babel plugin issue is different, and should now be fixed. See #25475