npm运行开发undefined:1在debian上的问题

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.js: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) 

我用laravel使用webpack,但我一直得到这个错误,我没有任何想法在哪里寻找这个问题,或者可能是什么问题。

有小费吗?

谢谢!

尝试从/public删除mix-manifest.json文件

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

错误来自JSONparsing器。 一般来说,它是由JSON.parse传递错误参数引起的。 仔细检查你是否试图parsing一些不正确的string到JSON。 当我将一个普通string传递给JSONparsing器时,我曾经有过这个错误。