chore: dev:inspect가 Node 24 미만이면 바로 멈추고 이유를 알려 준다
Node 20으로 띄우면 인스펙터 Network 도메인이 fetch를 잡지 못해 요청이 조용히 안 보인다 (실제 라우터 서버가 v20.20.2로 떠 있던 것을 확인). 버전 가드를 앞에 두어 nvm use를 안내한다. Co-Authored-By: Claude Opus 5
@1e2389333309e4e342f6b951c5428968a0159a75
--- package.json
+++ package.json
... | ... | @@ -4,7 +4,7 @@ |
| 4 | 4 |
"private": true, |
| 5 | 5 |
"scripts": {
|
| 6 | 6 |
"dev": "next dev", |
| 7 |
- "dev:inspect": "node --experimental-network-inspection node_modules/next/dist/bin/next dev --inspect", |
|
| 7 |
+ "dev:inspect": "node -e \"if (+process.versions.node.split('.')[0] < 24) { console.error('dev:inspect는 Node 24 이상에서만 백엔드 요청이 잡힙니다. 현재 ' + process.version + ' — 먼저 nvm use 를 실행하세요.'); process.exit(1) }\" && node --experimental-network-inspection node_modules/next/dist/bin/next dev --inspect",
|
|
| 8 | 8 |
"build": "next build", |
| 9 | 9 |
"start": "next start", |
| 10 | 10 |
"lint": "eslint" |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?