Reload web browser automatically using npm Command
Note: This solution is for only for Windows users. Make sure you have node.js installed in your machine.
Step 1: Check if you install package.json file in your project directory. If not than follow this step. Open your cmd and set path to the project directory.
- Go to Project directory
- Run npm init command
- Run npm install command
Step 2: Now you have the package.json file.
Step 5: Above command automatically run web browser.
That’s all. Now each time you change your code the web browser automatically refresh with updated code. If you have any problem regarding to above installation. Kindly post your questions in comment section below. Happy Coding 😊