kartikey54 / VaccineAvailabilityNotifier

534 stars 333 forks source link

Script not found error #65

Open ishika07 opened 3 years ago

ishika07 commented 3 years ago

Installed everything according to the instructions. image

Priyaraj17 commented 3 years ago

Maybe pm2 is not installed in your PC

JPRMohnish commented 3 years ago

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