Open ishika07 opened 3 years ago
Maybe pm2 is not installed in your PC
At first do this
npm install -all
This is not an npm error or pm2 error. probably if you are directly running pm2 or even npm start by cloning the project it will not work. As the given source code package.json doesnot contain the start scripts add following lines to package.json and it will work with npm start. command.
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node vaccineNotifier.js"
},
For pm2 one, sudo npm install -g pm2 or (google it for installing and configuration as per your pc). and then run the provided command. alternative directly run npm install -all and node vaccineNotifier.js
Installed everything according to the instructions.