[英]Why doesn't my vue app start after running `npm run serve`?
I'm having a bad time here.我在这里过得很糟糕。 For the past 24 hours I suppose.
在过去的 24 小时里,我想。 I recently started learning Javascript and I choose Vue JS as the JS framework of choice.
我最近开始学习 Javascript,我选择 Vue JS 作为首选的 JS 框架。
My vue js app throws me a plethora of errors without meaning constantly when npm run serve
is ran.当
npm run serve
运行时,我的 vue js 应用程序向我抛出了大量错误而没有意义。 After a while or after tweaking a lot of things like npm init
then npm install
(I usually don't understand what I do), npm run serve
starts the app successfully.一段时间后或在调整了很多东西之后,比如
npm init
然后npm install
(我通常不明白我在做什么), npm run serve
成功启动了应用程序。 after running npm run serve
运行
npm run serve
How can I go over this?我怎么能过去呢? And what is actually going on here that I don't understand.
我不明白这里到底发生了什么。 I'd need explanations too.
我也需要解释。 Thanks.
谢谢。
In Linux there is a limit on file watcher.在 Linux 中,文件观察器是有限制的。 You just need to increase that limit: To do this: open the file /etc/sysctl.conf and set fs.inotify.max_user_watches option to 524288 .
您只需要增加该限制:为此:打开文件/etc/sysctl.conf并将fs.inotify.max_user_watches选项设置为524288 。 Like this: fs.inotify.max_user_watches=524288
像这样: fs.inotify.max_user_watches=524288
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.