check you package.json file whether it has scripts as per below?
{ "name": "example", "version": "1.0.0", "description": "description", "scripts": { "test": "echo "Error: no test specified" && exit 1", "start": "node index.js", } }