解决方法:
每个人遇到该问题的根源可能不一样,我遇到的问题的解决方式是:
--------------------------------------------------------------------------------------------
npm install --save-dev @babel/core @babel/cli
--------------------------------------------------------------------------------------------
后来在结合webpack的过程中又出现了这个类似问题,这次使用的命令是:
--------------------------------------------
npm install --save-dev babel-core babel-loader@8 babel-plugin-transform-runtime
--------------------------------------------
第一次实际上是因为cli报出的这个错,第二次是因为babel-loader报出的这个错,报的是不一样的,所以解决方式也不一样。
原因分析:
报错中的“node_modules\babel-cli\”说明调用的是babel6的命令,而实际上7.0应该是这样的文件夹“node_modules\@babel\cli”, babel7是以@开头的。
问题描述:
--------------------------------------------------------------------------------------------
Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel. (While processing preset: "E:\\newEflow\\workspace\\eetablestats\\web\\modules\\statsMain\\node_modules\\@babel\\preset-env\\lib\\index.js")
at throwVersionError (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\@babel\helper-plugin-utils\lib\index.js:65:11)
at Object.assertVersion (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\@babel\helper-plugin-utils\lib\index.js:13:11)
at E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\@babel\preset-env\lib\index.js:91:7
at E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\@babel\helper-plugin-utils\lib\index.js:19:12
at E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-core\lib\transformation\file\options\option-manager.js:317:46
at Array.map (<anonymous>)
at OptionManager.resolvePresets (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-core\lib\transformation\file\options\option-manager.js:275:20)
at OptionManager.mergePresets (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-core\lib\transformation\file\options\option-manager.js:264:10)
at OptionManager.mergeOptions (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-core\lib\transformation\file\options\option-manager.js:249:14)
at OptionManager.init (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
at File.initOptions (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-core\lib\transformation\file\index.js:212:65)
at new File (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-core\lib\transformation\file\index.js:135:24)
at Pipeline.transform (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
at transform (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-cli\lib\babel\util.js:50:22)
at Object.compile (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-cli\lib\babel\util.js:59:12)
at write (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-cli\lib\babel\dir.js:21:21)
at handleFile (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-cli\lib\babel\dir.js:43:7)
at E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-cli\lib\babel\dir.js:61:9
at Array.forEach (<anonymous>)
at handle (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-cli\lib\babel\dir.js:59:29)
at Array.forEach (<anonymous>)
at module.exports (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-cli\lib\babel\dir.js:69:15)
at Object.<anonymous> (E:\newEflow\workspace\eetablestats\web\modules\statsMain\node_modules\babel-cli\lib\babel\index.js:129:1)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
相关推荐
此“VMware-VMvisor-Installer-7.0.0.update03-18644231.x86_64-DellEMC”文件,是VMware ESXi 7.0的更新补丁3,针对Dell EMC硬件进行了定制优化。 Dell EMC是数据中心解决方案的领先供应商,他们的硬件广泛应用于...
Install in your Vue project directorynpm install --save-dev vue-template-babel-compiler# or:yarn add vue-template-babel-compiler --dev# 2: Run a script to substitute vue-template-es2015-compiler with ...
PackageVersions, Composer插件以有效地获取安装的软件包版本号 软件包版本这里实用工具提供了对编写器依赖项的版本信息的快速便捷访问。这里信息来自 composer.lock 文件,该文件是在 composer install 或者 ...
基于最佳Web开发实践,已经有多个网站完全采用此框架开发,symfony的目的是加速Web应用的创建与维护。它的特点如下:缓存管理自定义URLs搭建了一些基础模块多语言与I18N支持采用对象模型与MVC分离Ajax支持适用于企业...
官方下载太慢了,放CSDN上方便大家快速下载,下载原因是我composer install报错:symfony/finder v5.0.4 requires php ^7.2.5 -> your PHP version (7.2.1) does not satisfy that requirement.其实我通过修改...
离线安装包,亲测可用
从VMware Online软件仓库创建ESXi安装ISO或Offline Bundle(标准模式) 从本地ESXi脱机捆绑包(-izip模式)创建ESXi安装ISO或脱机捆绑包 使用来自VMware Online仓库的ESXi补丁包更新本地ESXi脱机捆绑包(-izip -...
PDF generation requires a TeX distribution like `TeX Live`_ or MiKTeX_. Development setup ------------------ Run the bash script ``SetupForDevelopment.sh``:: $ ./Utilities/SetupForDevelopment.sh ...
phpFastCache是一个开源的PHP缓存库,只提供一个简单的PHP文件,可方便集成到已有项目,支持多种缓存方法,包括:apc, memcache, memcached, wincache, files, pdo and mpdo。可通过简单的API来定义缓存的有效时间。...
For a 2x2 correlation matrix \( R_u \), nonsingularity requires that the determinant \( \det(R_u) \neq 0 \). Specifically, if \( r_{12} = r_{21} \) for real data, the condition reduces to: \[ \det(R_...
yum-3.4.3-0.noarch.rpm
peerDependencies WARNING eslint-plugin-vue@^5.2.3 requires a peer of eslint@^5.0.0 but eslint@6.8.0 was installed peerDependencies WARNING eslint-plugin-vue@5.2.3 › vue-eslint-parser@^5.0.0 requires ...
**ESXi 7.0 更新概述** ESXi(Enterprise Synthetic eXtended Infrastructure)是VMware公司的一款轻量级操作系统,专门设计用于运行虚拟机。它作为vSphere平台的核心组件,提供了一个高度优化且安全的虚拟化环境。...
Node.js,简称Node,是一个开源且跨平台的JavaScript运行时环境,它允许在浏览器外运行JavaScript代码。Node.js于2009年由Ryan Dahl创立,旨在创建高性能的Web服务器和网络应用程序。它基于Google Chrome的V8 ...
资源分类:Python库 所属语言:Python 资源全名:requires-0.8.0-py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源分类:Python库 所属语言:Python 资源全名:requires.io-0.1.0-py2.py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
phpcodesniffer-composer-installer, 用于PHP_CodeSniffer编码标准的Composer 安装程序 PHP_CodeSniffer标准 Composer 安装程序插件 这个 Composer 安装插件允许轻松安装 PHP_CodeSniffer 编码标准( 规则集) 。...
1、Flask-1.1.1-py2.py3-none-any.whl 2、geos-0.2.2-py3-none-any.whl 3、Pillow-7.0.0-cp38-cp38-win_amd64.whl 4、Werkzeug-1.0.0-py2.py3-none-any.whl