$ cd /tmp
$ rails -v
$ rails new my-app
Using -T -d postgresql from /Users/rileytg/.railsrc # use postgres, dont use tests (usually add rspec). this is a fairly common rails stack.
Bundle complete! 14 Gemfile dependencies, 65 gems now installed.
run yarn add @firstname.lastname@example.org from "."
✨ Done in 17.36s.
Installing dev server for live reloading
run yarn add --dev webpack-dev-server from "."
✨ Done in 8.24s.
Webpacker successfully installed 🎉 🍰
$ cd my-app/
$ du -h -d 1
32K ./bin 🧐
120K ./config 🧐
106M ./node_modules 🧐🧐🧐🧐🧐🧐🧐🧐🧐🧐🧐🧐🧐
0B ./storage 🧐
16K ./public 🧐
Basically several compilers are bundled (node sass, webpack and Babel) so that you don't have to download them as a user and their version is stable for the app. You can use a tool like pnpm to only ever have one copy of them on your system but these aren't deps that negativity impact the app.