运行npm run dev命令时出现Laravel错误

时间:2019-01-20 18:10:43

标签: laravel vue.js

当我在终端中运行npm run dev时,我收到以下消息:

ERROR in ./resources/js/components/ExampleComponent.vue
Module build failed (from ./node_modules/vue-loader/lib/index.js):
Error: [vue-loader] vue-template-compiler must be installed as a peer dependency, or a compatible compiler implementation must be passed via options.
    at loadTemplateCompiler (/portal/node_modules/vue-loader/lib/index.js:21:11)
    at Object.module.exports (
(/portal/node_modules/vue-loader/lib/index.js:65:35)
 @ ./resources/js/app.js 19:35-79
 @ multi ./resources/js/app.js ./resources/sass/app.scss

谁能告诉我此错误的含义以及如何解决?

我试图在终端中运行此命令,但是仍然出现错误。

命令:npm i -D vue-template-compiler

我也尝试过重新安装所有依赖项,但是那也不起作用。

0 个答案:

没有答案