Debian 上的 npm run dev undefined:1 问题 [英] npm run dev undefined:1 issue on debian

查看:80
本文介绍了Debian 上的 npm run dev undefined:1 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

undefined:1

SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Manifest.read (/var/www/html/app/node_modules/laravel-mix/src/Manife                                                                                        st.js:132:21)
at new Manifest (/var/www/html/app/node_modules/laravel-mix/src/Manifes                                                                                        t.js:14:43)
at Mix.initialize (/var/www/html/app/node_modules/laravel-mix/src/Mix.j                                                                                        s:49:25)
at Object.<anonymous> (/var/www/html/app/node_modules/laravel-mix/setup                                                                                        /webpack.config.js:18:5)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at requireConfig (/var/www/html/app/node_modules/webpack/bin/convert-ar                                                                                        gv.js:96:18)
at /var/www/html/app/node_modules/webpack/bin/convert-argv.js:109:17
at Array.forEach (native)
at module.exports (/var/www/html/app/node_modules/webpack/bin/convert-a                                                                                        rgv.js:107:15)

我正在将 webpack 与 laravel 一起使用,但我不断收到此错误,我不知道在哪里查找此问题或可能是什么问题.

I'm using webpack with laravel, but i keep getting this error,I dont have any idea where to look for this issue or what could be the problem.

有什么建议吗?

谢谢!

推荐答案

尝试从 /public

来自 https://github.com/JeffreyWay/laravel-mix/issues/772

这篇关于Debian 上的 npm run dev undefined:1 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆