developer-portal-starter
developer-portal-starter copied to clipboard
`yarn start` throws error on `\node_modules\yoga-layout-prebuilt\yoga-layout\build\Release\nbind.js:53`
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.
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?
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.