Reputation: 37
Currently I am trying to run a very basic to do list using node. After setting up package.json and server.js, I ran npm start run, but I am getting a weird error.
UPDATE: Here is the basic code and .json file: enter image description here
var express = require('express'),
app = express(),
port =process.env.PORT ||3000;app.listen(port);
console.log('todo list RESTful API server started on: ' + port);
This is the complete log page:
Upvotes: 0
Views: 287
Reputation: 55
I ran into the same problem with nodemon when running my test scripts in a node.js api.
It seems the error is related to this issue with nanomatch, a package nodemon uses, a link to the issue: https://github.com/micromatch/nanomatch/issues/15.
I solved it with the following steps:
After these steps nodemon worked for me. Hope that helps.
Upvotes: 1