Ubuntu——vue create 项目时 Error: Command failed: yarn config get npmRegistryServer

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

yarn官方中文文档

$ curl -o- -L https://yarnpkg.com/install.sh | bash

验证版本

$ yarn --version

猜你喜欢

转载自blog.csdn.net/WU2629409421perfect/article/details/113686422