Execution yarn init error, how to solve?

After installation yarn yarn execute command to initialize the init program given as follows:

Solution:

1. first with npm init initialize the project

The final step in the initialization is this ok (yes)? Enter yes Enter, may appear Caton, it does not matter, you can exit with ctrl + v, does not affect the project, the reason may be related to Taobao mirror

3. Then use Taobao yarn config command to set the image

4. Add command to re-use yarn add dependencies on it.

Guess you like

Origin www.cnblogs.com/pongx/p/11845383.html