How to Install MedusaJS on macOS

Prerequisites

Before installing MedusaJS on your macOS machine, make sure that you have the following prerequisites installed:

You can check if you have Node.js and npm installed by running the following commands in your terminal:

node -v
npm -v

If you don't have Node.js and npm installed, visit the official Node.js website and download the latest LTS version.

Install MedusaJS

Once you have Node.js and npm installed, you can follow the steps below to install MedusaJS:

  1. Open your terminal and navigate to the directory where you want to install MedusaJS.

  2. Run the following command to install MedusaJS:

    npm install medusajs --save
    

    This will download and install the latest version of MedusaJS from the official npm registry.

  3. Once the installation is complete, you can test if MedusaJS has been successfully installed by running the following command:

    node node_modules/medusajs/bin/medusa start
    

    This will start the MedusaJS server on your local machine.

  4. You can now access the MedusaJS admin panel by visiting the following URL in your web browser:

    http://localhost:9000/admin
    

    This will take you to the login page of the MedusaJS admin panel. Use the default username and password ("admin" for both) to log in.

Congratulations! You have successfully installed MedusaJS on your macOS machine. You can now start building your e-commerce store using MedusaJS.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!