[Vue exception] solution to yarn install ResponseError: Request failed “500 Internal Server Error”

yarn install ResponseError: Request failed "500 Internal Server Error" solution

1. Phenomenon description

Prerequisite: npm registry has been set to the Taobao mirror address ( http://172.1.1.240:8081/repository/npm-taobao-group/). The installation can be successful through npm install --global yarn the command. Set yarn registry address ( http://172.1.1.240:8081/repository/npmjs_taobao.org).

Insert image description here

Then use yarn install command to execute. The result is an error ResponseError: Request failed “500 Internal Server Error” , the details are as follows:

Insert image description here

2. Cause of the problem

This is caused by the different addresses of npm registry and yarn registry.

3. Solution

Just set the registry addresses of npm and yarn to be the same. The following is my own operation.

Just click npm config set registry http://172.1.1.240:8081/repository/npmjs_taobao.org. Then execute yarn install the command again, and after a while it shows that the execution was successful. As shown below:

Insert image description here

This article is finished!

Guess you like

Origin blog.csdn.net/weixin_44299027/article/details/135346919