Configure Development Environment
Install Node.js Environmentâ
Install Node.js Using nvmâ
1. Install nvmâ
# Enter the following command and press Enter
curl -o nvm-setup.exe https://github.com/coreybutler/nvm-windows/releases/download/1.1.11/nvm-setup.exe
- Wait for download to complete
- Find the downloaded nvm-setup.exe (usually in Downloads folder)
- Double-click to run the installer
- Select all default settings and click Next throughout
- Close Cursor after installation completes
- Reopen Cursor and terminal
2. Install Node.jsâ
# Install the latest stable version of Node.js
nvm install --lts
# Use the installed version
nvm use --lts
# Verify installation was successful
node --version
Install Package Managerâ
npm and yarn Configurationâ
Install yarnâ
# Install yarn
npm install -g yarn
# Install npx tool
npm install -g npx
Configure Registry Mirrorsâ
# Set npm registry
npm config set registry https://registry.npmmirror.com
# Set yarn registry
yarn config set registry https://registry.npmmirror.com
Common Issues Resolutionâ
Permission Issuesâ
- Run Cursor as administrator
- Right-click Cursor icon â Select "Run as administrator"
Network Issuesâ
- Check if VPN tool is working properly
- Verify you can access the GitHub website
- Try clearing cache:
# Clear npm cache
npm cache clean --force
# Clear yarn cache
yarn cache clean
Environment Verificationâ
# Check Node.js version
node --version
# Check npm version
npm --version
# Check yarn version
yarn --version
# Check Git version
git --version
Important Notes
- You must press Enter after typing each command to execute it
- If a command appears stuck during execution, you can press
Ctrl+Cto interrupt - To paste commands into terminal, use
Ctrl+Vor right-click and select "Paste" - Avoid Chinese characters in paths
- Make sure each command completes before entering the next one