# Resetting the developer environment?

**URL:** <https://talk.jekyllrb.com/t/resetting-the-developer-environment/3879>\
**Category:** Help\
**Created:** [February 4, 2020, 11:00am UTC](https://talk.jekyllrb.com/t/resetting-the-developer-environment/3879 "2020-02-04T11:00:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sigul](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/sigul/32/1554_2.png) [@sigul](https://talk.jekyllrb.com/u/sigul)\
**Post date:** [February 4, 2020, 11:00am UTC](https://talk.jekyllrb.com/t/resetting-the-developer-environment/3879/1 "2020-02-04T11:00:38Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [February 4, 2020, 3:00pm UTC](https://talk.jekyllrb.com/t/resetting-the-developer-environment/3879/2 "2020-02-04T15:00:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ashmaroli](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@ashmaroli](https://talk.jekyllrb.com/u/ashmaroli)\
**Post date:** [February 5, 2020, 12:41pm UTC](https://talk.jekyllrb.com/t/resetting-the-developer-environment/3879/3 "2020-02-05T12:41:58Z")

</div>

> [@sigul](#):
>
> but I keep getting error

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…

---

<div class="post-metadata">

**Author:** ![vplauzon](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/vplauzon/32/2063_2.png) [@vplauzon](https://talk.jekyllrb.com/u/vplauzon)\
**Post date:** [February 6, 2020, 10:28pm UTC](https://talk.jekyllrb.com/t/resetting-the-developer-environment/3879/4 "2020-02-06T22:28:29Z")

</div>

I tried to do that by hand and gave up.

There is a Docker Image for that: [https://hub.docker.com/r/jekyll/builder](https://hub.docker.com/r/jekyll/builder).

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.

[https://hub.docker.com/repository/docker/vplauzon/jekyll-serve](https://hub.docker.com/repository/docker/vplauzon/jekyll-serve)
