laravel-mix not change

Changes to file webpack.mix.js are not applied

File contents webpack.mix.js mix.js('resources/assets/js/app.js', 'public/js') .sass('resources/assets/sass/app.scss', 'public/css') .sass('resources/assets/sass/sajjad.scss', 'public/css');

File contents sajjad.scss

// Fonts @import url(,300,300);

commend line: npm run watch The message below

@ production C:\laragon\www\lara cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

The system cannot find the path specified. events.js:163 throw er; // Unhandled 'error' event ^

Error: spawn node_modules\webpack\bin\webpack.js ENOENT at notFoundError (C:\Users\rojan\AppData\Roaming\npm\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:11:11) at verifyENOENT (C:\Users\rojan\AppData\Roaming\npm\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:46:16) at ChildProcess.cp.emit (C:\Users\rojan\AppData\Roaming\npm\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:33:19) at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)

npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\laragon\bin\nodejs\node-v7.10.0-x64\node.exe" "C:\laragon\bin\nodejs\node-v7.10.0-x64\node_modules\npm\bin\npm-cli.js" "run" "production"

npm ERR! node v7.10.0 npm ERR! npm v4.2.0 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ production: cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ production script 'cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --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=production node_modules/webpack/bin/webpack.js --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 WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\rojan\AppData\Roaming\npm-cache_logs\2017-08-09T20_38_16_902Z-debug.log

Hisham Haniffa replied 1 week ago

Have u pulled in all the necessary dependencies using npm install ?

sajjadkazemi10 replied 1 week ago


Sign in to participate in this thread!

We'd like to thank these amazing companies for supporting us