Home > Blockchain >  after the command "npm start" I do not see changes in the console, as if the code is not b
after the command "npm start" I do not see changes in the console, as if the code is not b

Time:05-09

after the command "npm start" I do not see changes in the console, as if the code is not being updated on the fly.

{ "scripts": { "format": "prettier --write app", "start": "http-server" }, "dependencies": { "http-server": "^14.1.0" }, "devDependencies": { "prettier": "^2.0.5" } }

My version of node: 7.11.1

i have a macbook

What can I do ?

Thank you

CodePudding user response:

Node do not automatically restart after changes :)

You should use eg. nodemon: enter image description here

then I have to in the console: nodemon game.js ?

  • Related