티스토리 뷰
Window : cmd 실행
npm -v 버전 확인
8.3.1
npm : 패키지 설치 프로그램
React 구성을 할 디렉토리로 이동.
npm init react-app [project name]
npm init react-app myReact
Need to install the following packages:
create-react-app
Ok to proceed? (y)
오류1
--------------------------------------------------------------------------------------
npm notice
npm notice New minor version of npm available! 8.3.1 -> 8.5.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.5.0
npm notice Run npm install -g npm@8.5.0 to update!
npm notice
--------------------------------------------------------------------------------------
npm install -g npm@8.5.0 실행
--------------------------------------------------------------------------------------
오류2
-------------------------------------------------------------------------------------
Cannot create a project named "myReact" because of npm naming restrictions:
* name can no longer contain capital letters
Please choose a different project name.
npm ERR! code 1
npm ERR! path c:\React\myReact
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c create-react-app "myReact"
-------------------------------------------------------------------------------------
프로젝트 이름은 소문자.
myReact 대문자가 포함되어 오류
-------------------------------------------------------------------------------------
정상
-------------------------------------------------------------------------------------
마지막 메시지
Happy hacking!
-------------------------------------------------------------------------------------
project name 디렉토리로 이동
npm start
http://localhost:3000 실행 확인 가능
'dev' 카테고리의 다른 글
React 개발환경 구성.1 (0) | 2022.02.15 |
---|---|
eclipse Git Author 변경 (0) | 2022.01.05 |
VirtualBox Network (0) | 2020.03.02 |
MariaDB SSH Tunnel (0) | 2020.02.25 |
CentOS7 NPM 12.x 설치 (0) | 2020.02.22 |
- Total
- Today
- Yesterday
- SSH
- yum
- Battery
- 설치
- USB
- boot
- author변경
- rufus
- Eclipse
- 개발환경
- REACT
- centos7
- 배터리교체
- git
- repo
- VirtualBox
- nextcloud
- Modality
- tunnel
- nodejs
- Breo
- npm
- Scalp
- centos8
- dicom
- Interface
- Python
- DBeaver
- MariaDB
- config
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |