I've installed json-server by using:
npm install -g json-server
then I created a db.json like this:
{
"employees": [
{
"id": 1,
"first_name": "Sebastian",
"last_name": "Eschweiler",
"email": "[email protected]"
},
{
"id": 2,
"first_name": "Steve",
"last_name": "Palmer",
"email": "[email protected]"
},
{
"id": 3,
"first_name": "Ann",
"last_name": "Smith",
"email": "[email protected]"
}
]
}
I watch json-server by:
json-server --watch db.json
but it does not work. The message in terminal is:
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.
What happened?