启动vue,报错:npm run serve INFO Starting development server... ERROR Error: Cannot find module ‘babel-lo

时间:2024-04-09 19:07:33

启动vue,报错:npm run serve INFO Starting development server… ERROR Error: Cannot find module ‘babel-loader’ Require stack:

启动vue,报错:npm run serve INFO Starting development server... ERROR Error: Cannot find module ‘babel-lo
解决方案:
找到package-lock.json
然后找到"babel-loader",查看版本:
然后根据提示的版本号进行安装
npm i [email protected] -D

启动vue,报错:npm run serve INFO Starting development server... ERROR Error: Cannot find module ‘babel-lo
就可以了