Gulp plugin error : Error in plugin 'run-sequence' : An error occured in task 'ngconstant:prod' - gulp

I use jhipster and i have this error in gulp task ?
Error in plugin 'run-sequence'
Message:
An error occured in task 'ngconstant:prod'.
any ideas?
Thanks.

Try below command :
npm install --save run-sequence
Hope this will work!!

Related

In every new project after npm install this error occur when i run the project

In every new project after npm install this error occur when i run the project
Error: multi (webpack)-dev-server/client?http://0.0.0.0:0&sockPath=/sockjs-node ./node_modules/#angular/material/prebuilt-themes/indigo-pink.css ./node_modules/bootstrap/dist/css/bootstrap.min.css ./src/styles.scss ../node_modules/font-awesome/css/font-awesome.css
Module not found: Error: Can't resolve 'E:\subha jha\subha useful\slfr\node_modules\font-awesome\css\font-awesome.css' in 'E:\subha jha\subha useful\slfr\lokfr-repo'

How to solve Puppeteer: failed to launch the browser process

Installed Puppeteer using the command : npm install puppeteer
OS : CentOs7 3.10.0-693.11.6.el7.x86_64
When I tried to run the file, I am getting the following error
(node:14216) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
/opt/xyz/node-v14.16.0-linux-x64/lib/node_modules/npm/node_modules/puppeteer/.local-chromium/linux-856583/chrome-linux/chrome: error while loading shared libraries: libxkbcommon.so.0: cannot open shared object file: No such file or directory
How to solve this error ?
It says what is missing:
error while loading shared libraries: libxkbcommon.so.0
You need to have the library on your system. It seems this is the one, you might be able to install it with your package manager:
# yum install libxkbcommon-x11

Angular6 getting error when building site for production

I was using Angular: 6.0.3 and when I updated my angular using npm update I am getting error when I am trying to build site for production.
When I am running command:
ng build --prod
I am getting error:
ERROR in ./src/app/app.module.ngfactory.js Module build failed: TypeError: Cannot read property '_statSync' of undefined
Current angular version is: 6.1.10
Full error you can see it here:Full error report link
That error is because of the version of cache-loader in package.json file. just run npm update and you will get cache-loader 1.2.5 they have fixed this in updated version.

Django : How to install mysql

I want to use mysql with django but I have problems
I tried this with pip :
(env) C:\mat20>pip install MySQL-python==2.7.1
and I have the error:
No distributions matching the version for MySQL-python==2.7.1
after I tried :
(env) C:\mat20>pip install MySQL-python
and I have the error :
error: Unable to find vcvarsall.bat
What is the problem ?
You can solve this error error: Unable to find vcvarsall.bat by
mingw
or try Install c++ compiler here

gulp + browser-sync - why gulp errors on removing directory from app?

In a simple gulp + browser-sync project here, all file add/delete/change are working correctly, but when I delete a directory from app gulp/browser-sync throws an error like below:
events.js:72
throw er; // Unhandled 'error' event
^
Error: watch EPERM
at errnoException (fs.js:1030:11)
at FSEvent.FSWatcher._handle.onchange (fs.js:1048:26)
I am not sure where to look for possible problems. If someone can point me to correct direction.
The problem here was an outdated version of BrowserSync.
Updating to the latest version will solve this issue.