This guide explains how to create a development environment using Mamba and set up a Vite application.
Run the following command to create and activate a Mamba environment with Node.js:
mamba create -n pycon-2025-env nodejs
mamba activate pycon-2025-env
Ensure that Node.js and npm are correctly installed:
node -v
npm -v
If you prefer to use a version of Node.js installed on your local system instead of Mamba, skip installing Node.js in Mamba and use:
nvm install 18 # Install Node.js 18 using NVM (if not already installed)
nvm use 18 # Use Node.js 18
Ensure that Node.js and npm are correctly installed:
node -v
npm -v
Navigate to your Vite project directory and run:
cd pycon-2025 # Replace with your actual project folder name
npm install
Launch the Vite development server with:
npm run dev
By default, the app should be accessible at http://localhost:5173/
.
To replicate this environment on another system, follow these steps:
-
Create the same environment:
mamba env create -f environment.yml mamba activate pycon-2025-env
-
If using a local Node.js version, install it again:
nvm install 18 # Ensure the correct version is installed nvm use 18
-
Navigate to the project and install npm dependencies:
cd pycon-2025 # Replace with your actual project folder name npm install
-
Run the Vite app:
npm run dev