inflearn logo
강의

Course

Instructor

Life Coding - React

Running the sample web app

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

19584

ECMA

2 asked

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 버전이네요)

react

Answer 2

3

ECMA

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

wkdwndud136114

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

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

2022 개정판

0

343

1

20.3 update에서 state변경이 안되는지 변경이 안됩니다

1

300

1

9강 배포하는법

0

277

1

19.6 create 구현 : contents 변경 강의에서 create가 안됩니다.

0

396

1

에바잖아요 이거

0

1109

1

1강부터 빠짐없이 따라했는데 10강의 pure.html이 안돼요

2

716

2

VS Code - 전체 주석처리 어떻게 하나요? 안되네요ㅠㅠㅠㅠ

0

2020

1

TOC.js에서 while문 안에

0

406

1

react 폴더 생성 이후 문제가 생겼습니다

0

481

0

10강에서

1

437

1

chrome에서 화면 전환이 안됩니다...

0

434

1

반복문으로 li태그 내용 입력하기

0

350

0

npm run start 했는데 에러 뜨시는 분들 참고하세요~

5

492

0

변수에 null을 넣는 이유는 뭘까요?

1

503

1

this.props.data가 어디서 나오는거죠?

0

578

1

빌드 관련 질문

0

261

0

크롬 웹스토어의 리액트툴 링크입니다.

3

295

0

class type 소스코드 예시

5

1057

3

쿵짝쿵짝

0

271

0

npm start 아무리 해도 해결이 안되요 ㅠㅠ

0

455

1

update구현:state변경 8분이후

0

309

1

original data 를 변경하지 않는 목적에 대해서

0

197

0

리액트 없이도 html 에서 include 쓰면...?

0

248

0

현재는 comunity에 tools라는 항목이 없네요

1

294

1