Creating a “Hello World!” Remix app
This section walks you through the creation of a new Remix application using the create-remix
CLI script. The script is maintained by the Remix team and used to bootstrap new Remix projects:
- Open a new terminal window and run the following command:
npx create-remix@2
We use
npx
to execute thecreate-remix
script. npx is part ofnpm
and stands for Node Package Execute. The command lets us run remote node scripts locally on our machine – pretty nifty!Note that we specify to use the latest available version of
create-remix
v2. The examples in this book are based on Remix v2. By adding the@2
postfix to the package name, we ensure that our first demo application installs a Remix v2 application.For projects outside of this book, we recommend using the following command instead to work with the latest stable version of Remix:
npx create-remix@latest
- If you are asked by
npx
to installcreate-remix
, entery
to answer with yes...