Help with updating webgui (npm command not found)

Recently I have found the webgui has been extremely sluggish. I thought I should update the gui and see if that helps. I am currently on webgui 15b71ae (not sure how old that is now).

I am following the wiki page “Updating the gui” but when I get to “npm install” I get the error -bash: npm: command not found.

Any ideas on where to go from here?

Update: I just refreshed the webgui screen and the version now shown is 0c23d8d. Does that mean that the update did actually work?

Update: Everything seems to be ok now. Sluggishness was caused by excessive backups which I have now pruned!