Level 4
Solved by deleting public/mix-manifest.json file.
Hello guys, I'm having some issues when trying to run npm run production or npm run watch.
I've updated the xcode using xcode-select –-installand it stills doesn't work, how can I solve that?
Errors:
> @ watch /Users/lucassimines/Laravel/E-Commerce
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
undefined:1
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Manifest.read (/Users/lucassimines/Laravel/E-Commerce/node_modules/laravel-mix/src/Manifest.js:132:21)
at new Manifest (/Users/lucassimines/Laravel/E-Commerce/node_modules/laravel-mix/src/Manifest.js:14:43)
at Mix.initialize (/Users/lucassimines/Laravel/E-Commerce/node_modules/laravel-mix/src/Mix.js:49:25)
at Object.<anonymous> (/Users/lucassimines/Laravel/E-Commerce/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 (/Users/lucassimines/Laravel/E-Commerce/node_modules/webpack/bin/convert-argv.js:96:18)
at /Users/lucassimines/Laravel/E-Commerce/node_modules/webpack/bin/convert-argv.js:109:17
at Array.forEach (native)
at module.exports (/Users/lucassimines/Laravel/E-Commerce/node_modules/webpack/bin/convert-argv.js:107:15)
npm ERR! Darwin 17.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "watch"
npm ERR! node v7.9.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ watch: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ watch script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/lucassimines/.npm/_logs/2017-10-04T13_47_30_699Z-debug.log
➜ E-Commerce git:(master) ✗
Solved by deleting public/mix-manifest.json file.
Please or to participate in this conversation.