node.jsraspberry-piyarnpkg

Node js server not showing changes to files even after restart


I'm working on a node js server that runs on a raspberry pi. I implemented some changes recently, they worked as expected when I ran them on the dev PC using

yarn start

But when I copied the changed over to the pi they wouldn't appear and the site stayed the same.

I have tried restarting the server. I have tried rebooting the pi (server is set to launch when the pi starts). I have tried clearing both the browser I use and npm cache.


Solution

  • are you develop with typescript? if yes, are you build your project before restart?