如何是用 yarn 安装 ant-design/icons-vue
https://3x.antdv.com/components/icon-cn 这里是用一个是用 npm 的方式 npm install --save @ant-design/icons-vue
但是如果我想是用 yarn 安装呢?
─➤ yarn add ant-design/icons-vue
yarn add v1.22.21
[1/4] 🔍 Resolving packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads ssh://git@github.com/ant-design/icons-vue.git
Directory: /Users/ponponon/Desktop/code/work/pon-it/tracking-king
Output:
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
上面这样做会报错,是什么原因呢?依赖问题吗?还是是用 yarn 姿势不对?还是网络问题呢?
原来是要加 @