npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: cross-env NODE_ENV=development 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 @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I am getting this error message and trying to fix it:
21 error code ELIFECYCLE
22 error syscall spawn bash
23 error file bash
24 error path bash
25 error errno -4058
26 error @ dev: npm run development
26 error spawn bash ENOENT
27 error Failed at the @ dev script.
27 error This is probably not a problem with npm. There is likely additional logging output above
I am using Windows and also gitlab. Should I reinstalled a fresh new laravel project? I also do not know which file to copy if I copy the whole files then what's the point? Please advice if anyone can help me solve the issue by seeing the error message.
Please at the very least wrap that in code tags ```. It is completely unreadable.
But better yet... try to see the actual error. Run the command and when it fails, scroll up and loop for something think this (taken from the link you posted)
Under which brackets? laravel-mix/package.json have a lot of brackets:
"dependencies": {
?
D:\xampp2\htdocs\sesa_final\sesa-e-commerce>rm -rf node_modules
'rm' is not recognized as an internal or external command,
operable program or batch file.
npm cache clean --force
delete node_modules (manually)
npm install
npm run dev
Still the same errors :
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: cross-env NODE_ENV=development 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 @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
One of the files where used by another process and could not be overwritten or some permission issue probably. I think you really need to learn more Windows and linux basics before you continue your career as a developer.
You mean cannot create test.css in public/css folder? See I login as Admin and as admin the permission is full control, only user that has read only permission.
Sure it does. The Admin user does not have full access to another users files. And just because you are admin does not mean that every program you run are run as admin. To do that you need to do a run as admin.
So if the files in a folder requires admin access then you need to run npm as admin which is really not a good idea. I'm guessing you are using Windows 10 where Microsoft really fubared everything that has to do with permissions.