Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:111:27) npm run错误

1 Introduction

After the blogger deployed the micro-applications when using Qiankun and was about to start in the main application, the following error was reported when npm run start:
Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:111:27)
After consulting the information, it is found that this is related to the version of node. Of course, the blogger hereby declares that node is not the root cause, but changing the version of node after the blogger’s test can solve the problem.

2 Solution

First, the blogger checked his node version

node -v
# v10.15.3

Then download a node version manager n, so that we can use and switch any version of node at any time.
Click to view n version manager instructions.
First install n

npm install -g n

n can be directly n can install the specified version, for more details, click to view. The
blogger here try to change to version 8.12.0, the problem is solved

n 8.12.0

You can use n to view and change the version of node

n
#node/8.12.0
#node/10.15.3

The problem is solved after the node version is changed, but the root cause has not been found by the blogger. After finding it, continue to add

Guess you like

Origin blog.csdn.net/qq_41800366/article/details/106683705