如何使用 yarn 安装 ant-design/icons-vue ?-灵析社区

Ufoooo4U

如何是用 yarn 安装 ant-design/icons-vue [https://3x.antdv.com/components/icon-cn](https://link.segmentfault.com/?enc=FRGGrKJwBQThpIRWMc9Saw%3D%3D.aF7Lx388UGuceRviXGpukyHHpdgrfVsQ9LJl%2FS1JlHiixdlR87ReN%2BYtKQ%2Fy5gAC) 这里是用一个是用 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 姿势不对?还是网络问题呢?

阅读量:211

点赞量:0

问AI
原来是要加 @ ╰─➤ yarn add @ant-design/icons-vue 128 ↵ yarn add v1.22.21 [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... warning " > less-loader@11.1.3" has unmet peer dependency "webpack@^5.0.0". [4/4] 🔨 Building fresh packages... success Saved lockfile. success Saved 1 new dependency. info Direct dependencies └─ @ant-design/icons-vue@7.0.1 info All dependencies └─ @ant-design/icons-vue@7.0.1 ✨ Done in 4.94s.