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

babel-loader@8.0.2 requires a peer of @babel/core@^7.0.0 but none is installed. #2432

Closed
rockan007 opened this issue Sep 4, 2018 · 10 comments

Comments

@rockan007
Copy link

Version

3.0.1

Reproduction link

https://github.com/vuejs

Node and OS info

babel-loader@8.0.2 requires a peer of @babel/core@^7.0.0 but none is installed.

Steps to reproduce

i created a project,run 'npm install'.showed the info 'babel-loader@8.0.2 requires a peer of @babel/core@^7.0.0 but none is installed.'

What is expected?

@babel/core 项目依赖安装完毕

What is actually happening?

需手动安装

@sodatea
Copy link
Member

sodatea commented Sep 4, 2018

只是 warning,不影响实际使用。项目中实际有安装 @babel/core v7.0.0-beta.47。
等我们升级至 babel 7.0 正式版后这个 warning 就会消掉的。

@sodatea sodatea closed this as completed Sep 4, 2018
@tinymachine
Copy link

In case it's helpful to others, here's a lightly edited version of Google's English translation of @sodatea's message above:

This is just a warning; it does not affect actual use. @babel/core v7.0.0-beta.47 is actually installed in the project. This warning will be eliminated after we upgrade to the official version of babel 7.0.

@Eyongkevin
Copy link

Thank you @sodatea for the response and @tinymachine for the translation.

@HelaGone
Copy link

You may need to install Babel this way, as of Babel 7: npm install --save-dev @babel/core @babel/preset-env

@BrenoTeodor-o
Copy link

@HelaGone Thankyou a lot for sharing this, I was looking for a solution for hours and your suggestion just save my life here! 😄

@HelaGone
Copy link

HelaGone commented Jan 4, 2019

@BrenoTeodor-o you're welcome, Happy coding

calaldees added a commit to superLimitBreak/displayTrigger that referenced this issue Jan 14, 2019
@Number77asa
Copy link

Well, in most cases you shouldn't ignore this; the issue arises from babel having so many package versions (babel 6, babel 7; etc.)
Here is a reference: https://nuget.qite.be/feeds/NPM/babel-core/7.0.0-bridge.0
solution for me was: sudo npm install --save-dev babel-core@7.0.0-bridge.0

@bogdanmoisin
Copy link

You may need to install Babel this way, as of Babel 7: npm install --save-dev @babel/core @babel/preset-env

Life saver.

@x93008
Copy link

x93008 commented Sep 14, 2020

sudo npm install --save-dev babel-core@7.0.0-bridge.0

why use sudo

@AmandaBoo
Copy link

Thank you! This helped me get past my npm install --save gh-pages command!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants