Installation
This guide covers installing Crane and its dependencies on your system.
System Requirements
Before installing, ensure your system meets the following requirements:
- Node.js: Version 22 or higher
- npm: Version 10 or higher (comes with Node.js 22+)
Create a Project
Create a new directory for your application and install the required dependencies:
bash
mkdir my-workspace && cd my-workspace
npm init -yInstall Dependencies
Install Crane and its required packages:
bash
npm install vite vue @lightspeed/crane@latest @lightspeed/eslint-config-crane@latestVerify Installation
Check that Crane is installed correctly:
bash
npx @lightspeed/crane@latest --helpYou should see a list of available commands including init, build, preview, and deploy.
Troubleshooting
Command Not Found
If npx @lightspeed/crane@latest is not recognized, verify that Node.js and npm are installed and available in your PATH:
bash
node --version # Should print v22.x.x or higher
npm --version # Should print 10.x.x or higherVersion Conflicts
If you have multiple Node.js versions installed, make sure the active version is 22 or higher:
bash
nvm use 22
# or
fnm use 22Next Steps
- Quick Start — scaffold and preview your first application