Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于安装依赖时使用淘宝源导致安装出错 #29

Open
jwchan1996 opened this issue Nov 24, 2020 · 1 comment
Open

关于安装依赖时使用淘宝源导致安装出错 #29

jwchan1996 opened this issue Nov 24, 2020 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers type:documentation Improvements or additions to documentation
Projects
Milestone

Comments

@jwchan1996
Copy link

jwchan1996 commented Nov 24, 2020

问题

截止今日【北京时间 2020-11-25】,由于淘宝源上 vue-loader 最新稳定版本是 15.9.5,而 vue-cli 4.5 以上版本依赖于 vue-loader 16 版本,所以使用淘宝源安装时缺少 16 版本会导致安装出错。

解决办法

直接使用 npm 源安装

折中处理方法(针对网络不好的临时处理方法)

使用淘宝源安装 cnpm install

会遇到 vue-loader 16 版本的报错,单独使用 npm 源安装 vue-loader 16 版本

npm install vue-loader@^16.0.0-beta.3 --save-dev  

单独安装成功后,本项目的 package.json 和 package-lock.json 会更改,因为这是临时解决方案,所以建议在安装成功后要使用 git 回退命令将这些文件修改给撤销掉~

@xingorg1 xingorg1 added bug Something isn't working good first issue Good for newcomers type:documentation Improvements or additions to documentation labels Nov 25, 2020
@xingorg1 xingorg1 added this to To do in axe-ui via automation Nov 25, 2020
@xingorg1 xingorg1 pinned this issue Nov 25, 2020
axe-ui automation moved this from To do to Done Nov 25, 2020
@xingorg1 xingorg1 added this to the 2020年 milestone Nov 25, 2020
@xingorg1 xingorg1 self-assigned this Nov 25, 2020
@xingorg1 xingorg1 reopened this Nov 25, 2020
axe-ui automation moved this from Done to In progress Nov 25, 2020
@xingorg1
Copy link
Member

@xingorg1 调整依赖管理文件

@xingorg1 xingorg1 unpinned this issue Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers type:documentation Improvements or additions to documentation
Projects
axe-ui
In progress
Development

No branches or pull requests

2 participants