nodemon is not working in windows.nodemon -v is showing errors

nodemon is not working in windows.nodemon -v is showing the below  errors nodemon : File C:\Users\AppData\Roaming\npm\nodemon.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170 At line:1 char:1 + nodemon -v + ~~~~~~~ + CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess   Fix… Read More »

Error [ERR_REQUIRE_ESM]: require() of ES Module E:\node-course\notes-app\node_modules\chalk\source\index.js from E:\node-course\app.js not supported. Instead change the require of index.js in E:\node-course\app.js to a dynamic import() which is available in all CommonJS modules. at Object. (E:\node-course\notes-app\app.js:8:15) { code: ‘ERR_REQUIRE_ESM’

Error [ERR_REQUIRE_ESM]: require() of ES Module E:\node-course\notes-app\node_modules\chalk\source\index.js from E:\node-course\app.js not supported. Instead change the require of index.js in E:\node-course\app.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (E:\node-course\notes-app\app.js:8:15) { code: ‘ERR_REQUIRE_ESM’   Solution is use lower version of chalk — npm install chalk@4.1.2

How to Create component and services in angularjs

Create Component —————-

here dashboard component will be created with folder dashboard.So inside Dashboard folder following files will be available src/app/dashboard/dashboard.component.html src/app/dashboard/dashboard.component.ts Service,Guards Creation —————- here authentication guard service is created using the following commands

it will generate the following two files inside services,guards folders src/app/services/authentication.ts src/app/guards/authentication.guard.ts

Angularjs error:has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource

When i m trying to access nodejs api using angular its throwing this error Solution:

php artisan –version not working in laravel it throws error-In UrlGenerator.php line 111: Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request, null given, called in

C:\xampp\htdocs\myproj>php artisan –version While executing this command it throws the below error. Solution: Normaly this issue will happen if the config files contains url(). Please remove all the url() related things from the config.php Or comment all the code and try the above command once more it will show properly. In UrlGenerator.php line 111: Argument… Read More »

Usage of SoftDelete in laravel 5.6

This is explained here using the below model,controller files EmpMaster.php

Controller.php