npm要求babelify@10.0.0需要一个@ babel / core @ ^ 7.0.0的同级

时间:2018-10-03 12:51:40

标签: npm dependencies

我在使用npm和babel / core /

时遇到问题

我无法从https://github.com/jakearchibald/wittr安装演示应用

$ git clone https://github.com/jakearchibald/wittr
$ npm install 

我知道

在29.719s中添加了526个贡献者的1053个软件包,并审核了6107个软件包 发现了33个漏洞(15个低,17个高,1个严重)  运行npm audit fix进行修复,或运行npm audit了解详情

npm install --save-dev gulp@4.0.0 ws@6.0.0 browserify@16.2.3 babelify@10.0.0 gulp-babel@8.0.0 gulp-handlebars@5.0.2 handlebars@4.0.12 gulp -load-plugins@1.5.0 lodash@4.17.11

npm WARN babelify@10.0.0 requires a peer of @babel/core@^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN gulp-babel@8.0.0 requires a peer of @babel/core@^7.0.0 but none is installed. You must install peer dependencies yourself.

+ gulp-handlebars@5.0.2
+ babelify@10.0.0
+ gulp-babel@8.0.0
+ gulp@4.0.0
+ handlebars@4.0.12
+ gulp-load-plugins@1.5.0
+ ws@6.0.0
+ browserify@16.2.3
+ lodash@4.17.11
added 120 packages from 91 contributors, removed 143 packages, updated 54 packages and audited 10195 packages in 13.062s
found 4 vulnerabilities (3 low, 1 high)
  run `npm audit fix` to fix them, or `npm audit` for details

我将所有漏洞降低到仅1高和3低。但是npm运行发球不起作用

我正在运行节点10.10.2,它比建议的依赖关系0.12.7还要高,所以应该没有问题

我正在使用npm 6.4.1版本

package.json文件为here

任何帮助将不胜感激,

谢谢

1 个答案:

答案 0 :(得分:2)

尝试安装Babel 7,它应该可以工作

$ npm install --save-dev babelify @babel/core

我遇到了同样的问题,如下图所示

enter image description here

安装后

enter image description here

单击此以获取更多信息 babelify