• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

npm run start로 실행이 안되는경우 참고하세요.

19.12.15 23:02 작성 조회수 19.1k

4

npm ERR! missing script: start

npm ERR! A complete log of this run can be found in:

npm ERR!    \AppData\Roaming\npm-cache\_logs\2019-12-15T13_41_08_343Z-debug.log

==============================================

npm i -g create-react-app@2.1.8 대신

npm i -g create-react-app  로 설치하시면 src 폴더가 생기고 이후 강의대로 진행하면 확인할 수 있습니다. (2019-12-15 기준 3.3.0 버전이네요)

답변 2

·

답변을 작성해보세요.

3

ECMA님의 프로필

ECMA

질문자

2020.03.17

1. nodejs 설치

https://nodejs.org/ko/

##node -v : 노드 버전 확인

##npm -v : npm 버전 확인

2. VS code 설치

3. 전역으로 create-react-app 설치 (최신버전 적용)

D:\react-app>npm i -g create-react-app

4. create-react-app 로 설치확인 (아래와 같이 나옴)

D:\react-app>create-react-app

Please specify the project directory:

  create-react-app <project-directory>

For example:

  create-react-app my-react-app

Run create-react-app --help to see all options.

5. 개발환경 구축

D:\react-app>create-react-app .

##작업진행 후 다음과 같이 나옴.

We suggest that you begin by typing:

  cd D:\react-app

  npm start

Happy hacking!

D:\react-app>

6.  VS Code에서 D:\react-app 경로 열고

ctrl + shift + ` (백틱) 눌러 command line 에서

PS D:\react-app> npm run start 실행.

1번 부터 6번까지 순서대로 하시면 개발환경 동작하시는것 확인하실 수 있습니다.

참고하시기 바랍니다.

0

장주영님의 프로필

장주영

2020.03.12

PS C:\Users\장주영\Desktop\react-app> npm run start

npm ERR! missing script: start

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\장주영\AppData\Roaming\npm-cache\_logs\2020-03-12T08_01_51_683Z-debug.log

이런에러가 나오는 경우는 어떻게하죠..?ㅠㅠ