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

npm7安装peer-dependency误区 #140

Open
GleanCoder1116 opened this issue Oct 19, 2021 · 0 comments
Open

npm7安装peer-dependency误区 #140

GleanCoder1116 opened this issue Oct 19, 2021 · 0 comments
Labels
js编译 webpack || babel || rollup || vite

Comments

@GleanCoder1116
Copy link
Member

npm 7 升级之后,所有peer dependency 会自动安装,但是如果某个包的peer dependency 和root 层同样包的版本冲突,npm7 会自动报错。尝试过网上的版本npm install --force 和–legacy-peer-dependency 标志。这个不会弹出报错信息,只是直接跳过安装依赖,不能解决问题包的使用问题。

@GleanCoder1116 GleanCoder1116 added the js编译 webpack || babel || rollup || vite label Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
js编译 webpack || babel || rollup || vite
Projects
None yet
Development

No branches or pull requests

1 participant