Resetting the developer environment?

I am trying to installing npm and bundler in a jekeyll dir but I keep getting error and I am pretty sure I messed up a few things. there’s a way to “reset” the development environment?

For npm you can remove the node_modules folder. For bundler remove Gemfile.lock.
Then run npm install and bundle install to reinstall everything in whatever directory you’re working in.

Telling us what exactly the error was will allow us to determine if you need to re-install Ruby or just make some other changes…

I tried to do that by hand and gave up.

There is a Docker Image for that:

Also, I built my own on top of it that take a git clone URL and a branch. It git clone the repo with the branch and serves the site on port 4000. This is what I use to render my “staging site” now.