Yarn Create-npm注册表似乎有问题


$ yarn create react-app web --template typescript
yarn create v1.22.5
[1/4] Resolving packages...
info There appears to be trouble with the npm registry (returned undefined). Retrying...
info There appears to be trouble with the npm registry (returned undefined). Retrying...
info There appears to be trouble with the npm registry (returned undefined). Retrying...
info There appears to be trouble with the npm registry (returned undefined). Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with the npm registry (returned undefined). Retrying...
[2/4] Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/tmp/-/tmp-0.2.1.tgz: Request failed "502 Bad Gateway"".
info If you think this is a bug, please open a bug report with the information provided 
in "C:\Users\Martins\AppData\Local\Yarn\Data\global\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.

Windows:10节点:14.11.0纱线:1.22.5npm:6.14.8

如果问题继续发生,您可以尝试:

$ yarn init

之后

$ yarn create react-app web --template typescript

同时检查它是否在项目的创建目录中。

最新更新