I run the following command in my terminal:
npm install -g nodemon
but whenever i starting nodemon by nodemon index.js
, it's showing me the following error:
nodemon : File C:\Users\****\****\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 index.js
CategoryInfo : SecurityError: (:) [], PSSecurityException
FullyQualifiedErrorId : UnauthorizedAccess
>
My package.json file is:
{
"name": "gfg-express",
"version": "1.0.0",
"description": "How to connect express with mongodb atlas",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Greyhat07",
"license": "ISC",
"dependencies": {
"express": "^4.18.2"
}
}
solution, that is how to solve this problem