Sure there is. When I’m done looking at it, I delete the Docker image and it’s gone from my system. That’s more effort with npm.
Also, the docker solution works for everything. So whether it’s a node app, or python, or Go, or Ruby... the process is the same.