npm start的时候报错怎么回事啊

来源:2-1 class类定义语法

慕虎7937911

2019-03-01 15:27

Hash: 6beb634f3d7205264207

Version: webpack 4.29.6

Time: 107ms

Built at: 2019-03-01 15:25:43

  Asset      Size  Chunks             Chunk Names

main.js  11.2 KiB    main  [emitted]  main

Entrypoint main = main.js

[./src/index.js] 2.75 KiB {main} [not cacheable] [built] [failed] [1 error]


ERROR in ./src/index.js

Module build failed (from ./node_modules/babel-loader/lib/index.js):

Error: Cannot find module '@babel/core'


写回答 关注

2回答

  • 大佬帮帮我吧
    2019-07-26 15:41:25

    npm i babel-loader@7.1.4

  • ouyangxuanyun
    2019-03-09 19:10:51

    缺少 @babel/core 模块,需要安装,可以检查一下package.json 或者直接

    npm install @babel/core

mobx入门基础教程

mobx框架基础入门,使用mobx做状态管理

18816 学习 · 54 问题

查看课程

相似问题