ubuntu20.04系统,在终端执行 vue create hello-world
时,报了以下错误:
00h00m00s 0/0: : ERROR Error: Command failed: yarn config get npmRegistryServer
ERROR: [Errno 2] No such file or directory: ‘config’
经过检查判断,原来是系统没有安装yarn,按照官方文档安装yarn就可以啦
附 安装yarn
$ curl -o- -L https://yarnpkg.com/install.sh | bash
验证版本
$ yarn --version