Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

yarn start throws error on \node_modules\yoga-layout-prebuilt\yoga-layout\build\Release\nbind.js:53 #243

Open
MilanLund opened this issue Nov 21, 2022 · 1 comment

Comments

@MilanLund
Copy link

This issue is most likely related to the @redocly/developer-portal package (tried versions 1.1.0-beta.118 and 1.1.0-beta.120) which is the only dependency of this package.

I am following the docs here.

For the first time, I was able to successfully install and run the development server with no issues. However, when I stopped the server and tried to run it once again, I got the following error:

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

Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:213:20)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:188:8)
    at emitErrorCloseNT (node:internal/streams/destroy:153:3)
    at processTicksAndRejections (node:internal/process/task_queues:80:21) {
  errno: -4077,
  code: 'ECONNRESET',
  syscall: 'read'
}
error Command failed with exit code 7.

devportal

From what I have tested yarn start starts the development server successfully only once after a computer restart. Every other try ends up with the above-mentioned error.
Running on Windows 10.
I tried to install and run this package on various Node.js versions: 14.15.1, 15.5.1, 16.10.0.
I also tried to run yarn clean, remove the yarn.lock file and the node_modules folder and reinstall everything. No luck at all.

I found out that the issue might be related to the gatsby or gatsby-cli packages. However, I could not find any reliable fix.

So you probably came across this issue and could assist?

@MilanLund
Copy link
Author

I found a workaround if anyone comes across this issue too. In the package.json file, change the port to a different number for the start script. The dev server should start then.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant