纱线强制包装使用特定版本

时间:2018-07-18 08:24:33

标签: npm npm-install yarnpkg yarn-workspaces

使用此处找到的Jest Vue cli插件运行单元测试时,我当前遇到以下问题。 https://www.npmjs.com/package/@vue/cli-plugin-unit-jest

我收到的错误是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 somet hing 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

我正在使用Yarn工作区,并且想知道强制@vue/cli-plugin-unit-jest使用版本^7.0.0-0的babel-core的最佳方法

0 个答案:

没有答案