preview
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseStart Preview Server
启动预览服务器
Start the Next.js development server for local preview.
启动Next.js开发服务器进行本地预览。
Steps
步骤
-
Check if dependencies are installed:bash
[ -d "node_modules" ] || pnpm install -
Check if port 3000 is available:bash
lsof -i :3000 | grep LISTEN -
Start development server:bash
pnpm dev -
Report the URL: http://localhost:3000
-
检查依赖是否已安装:bash
[ -d "node_modules" ] || pnpm install -
检查3000端口是否可用:bash
lsof -i :3000 | grep LISTEN -
启动开发服务器:bash
pnpm dev
If Port 3000 is Busy
如果3000端口被占用
Suggest alternative:
bash
pnpm dev -- -p 3001Or kill existing process (with user confirmation):
bash
kill $(lsof -t -i:3000)
pnpm dev建议使用替代方案:
bash
pnpm dev -- -p 3001或者终止现有进程(需用户确认):
bash
kill $(lsof -t -i:3000)
pnpm dev