One attempt at keeping a Dev environment up to date

Jay, I wish I could react with multiple :chefs_kiss:.

Tested on Ubuntu on WSL as non-root, stumbled upon a few hiccups and things to do before successfully running it.

I just had to:

  • Install asdf[1] as precised in your guide and nodejs[2] prior to running the script

  • Run sudo chown -R $(whoami):$(whoami) ~/discourse because I had permissions issues[3] when the script ran pnpm dedupe. I’m not exactly fluent in Linux, so maybe there’s a more proper solution.

A small suggestion to make this guide even neater, maybe use placeholders to replace the paths variables at the beginning of your codeblock. Not that would make things that much convenient, but it would be a nice touch. :smile:


  1. Getting Started | asdf ↩︎

  2. asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git ↩︎

  3. EACCES: permission denied, unlink '/home/coco/discourse/app/assets/javascripts/discourse-plugins/node_modules/ember-this-fallback' ↩︎

1 Like