简体   繁体   English

Laravel Vue.js应用程序未运行

[英]Laravel Vue.js application not running

I have a serious problem on running Laravel + Vue.js new applications. 我在运行Laravel + Vue.js新应用程序时遇到严重问题。 I tried that on a 50% developed app and also on a brand new Laravel instalation and that shows the same error. 我在开发了50%的应用程序上以及在全新的Laravel安装上进行了尝试,结果显示出相同的错误。 After installing the Laravel and going into php artisan serve i start a common routine to start Vue.js within that Laravel application, which means NPM RUN INSTALL and right after NPM RUN DEV . 安装Laravel并进入php artisan服务后,我启动了一个公共例程以在该Laravel应用程序中启动Vue.js,这意味着NPM RUN INSTALL ,紧接在NPM RUN DEV This is what the errors show me: 这是错误向我显示的内容:

在此处输入图片说明 在此处输入图片说明

I have tried all possible solutions found on previous posts on Stack Overflow and Github but the error persists. 我已经尝试过所有在Stack Overflow和Github上的帖子中找到的所有可能的解决方案,但是错误仍然存​​在。 I have a node version 10.15.1 and the latest Laravel scaffold. 我有一个节点版本10.15.1和最新的Laravel支架。 Any thoughts on what might be happening? 对可能发生的事情有任何想法吗? Im at the point of giving up using a scaffold Vue.js and instead using it as stand alone. 我打算放弃使用脚手架Vue.js,而将其单独使用。

Thank you! 谢谢!

It seems like, It fails while vue-template-compiler package getting install through yarn. 看来,当通过纱线安装vue-template-compiler软件包时,它失败了。

It might be issue with yarn in your system. 系统中的纱线可能有问题。 Try to first install vue-template-compiler through NPM: 尝试首先通过NPM安装vue-template-compiler

  • npm install vue-template-compiler

Then try again with npm run dev . 然后使用npm run dev再试一次。

I hope this will help. 我希望这将有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM