반응형
    
    
    
  현재 프로젝트의 package.json에서 아래와 같이 수정한다.
윈도우 환경
{ 
  ... 
    "scripts": { 
        "start": "set PORT=9999 && react-scripts start", 
        "build": "react-scripts build", 
        "test": "react-scripts test", 
        "eject": "react-scripts eject" 
    }, 
  ... 
}
리눅스 환경에서 표현
{ 
  ... 
    "scripts": { 
        "start": "export PORT=9999 && react-scripts start", 
        "build": "react-scripts build", 
        "test": "react-scripts test", 
        "eject": "react-scripts eject" 
    }, 
  ... 
}
반응형
    
    
    
  'Basic > React' 카테고리의 다른 글
| dashboard design example (0) | 2021.03.24 | 
|---|---|
| Redux를 이용한 Counter 예제 (0) | 2021.03.24 | 
| Prittier 저장 시 자동으로 코드 정리하기 (0) | 2021.03.23 | 
| React를 이용한 다중 input 상태 관리 (0) | 2021.03.19 | 
| React 스타일 조건부 렌더링 (0) | 2021.03.18 |