Most of the time this error means that you have to wrong file permissions on your assets. Make sure they all have the correct rights and belong to the correct user.
Jun 24, 2019
10
Level 4
Npm run watch displays error after compiling then stops watching
It compiles up untill 95 percent then displays
DONE Compiled successfully in 32854ms 3:57:42 AM
Asset Size Chunks Chunk Names
/js/app.js 1.51 MB 0 [emitted] [big] /js/app /css/app.css 21.3 kB 0 [emitted] /js/app internal/child_process.js:313 throw errnoException(err, 'spawn');
followed this error. I dont understand the error, please if you do help me get a solution thanks
DONE Compiled successfully in 32854ms 3:57:42 AM
Asset Size Chunks Chunk Names
/js/app.js 1.51 MB 0 [emitted] [big] /js/app
/css/app.css 21.3 kB 0 [emitted] /js/app
internal/child_process.js:313
throw errnoException(err, 'spawn');
^
Error: spawn UNKNOWN
at exports._errnoException (util.js:1026:11)
at ChildProcess.spawn (internal/child_process.js:313:11)
at exports.spawn (child_process.js:380:9)
at Object.exports.execFile (child_process.js:143:15)
at C:\Users\SUCCESS\Homestead\Projects\success_techmax\node_modules\node-not
ifier\lib\utils.js:104:8
at C:\Users\SUCCESS\Homestead\Projects\success_techmax\node_modules\node-not
ifier\lib\utils.js:111:22
at FSReqWrap.oncomplete (fs.js:123:15)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files (x86)\Nodist\v-x64\6.9.1\node.exe" "C:\Pro
gram Files (x86)\Nodist\npmv\3.10.9\bin\npm-cli.js" "run" "development" "--
" "--watch"
npm ERR! node v6.9.1
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin
/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/we
bpack.config.js "--watch"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ development script 'cross-env NODE_ENV=development node
_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/
laravel-mix/setup/webpack.config.js "--watch"'.
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
--progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config
.js "--watch"
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! C:\Users\SUCCESS\Homestead\Projects\success_techmax\npm-debug.log
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files (x86)\Nodist\v-x64\6.9.1\node.exe" "C:\Pro
gram Files (x86)\Nodist\npmv\3.10.9\bin\npm-cli.js" "run" "watch"
npm ERR! node v6.9.1
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! @ watch: `npm run development -- --watch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ watch script 'npm run development -- --watch'.
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! npm run development -- --watch
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! C:\Users\SUCCESS\Homestead\Projects\success_techmax\npm-debug.log
C:\Users\SUCCESS\Homestead\Projects\success_techmax>
Level 4
I finally got it fixed by formatting my PC but if you are facing this issue you dont need to format your PC, the problem was from the node. I needed to update my node but unfortunately for me, my PC refused to uninstall the node that was already install.
Please or to participate in this conversation.