DBILITY

intellij react create app error until ver. IDEA 2022.1.1 본문

intellij

intellij react create app error until ver. IDEA 2022.1.1

DBILITY 2022. 5. 17. 12:30
반응형
You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1).

We no longer support global installation of Create React App.
Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app

The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/

전역설치를 더 이상 지원하지 않는다니..

IntelliJ IDEA 2022.1.2 (Ultimate Edition)에서는 해결됨.

https://create-react-app.dev/docs/getting-started/

 

Getting Started | Create React App

Create React App is an officially supported way to create single-page React

create-react-app.dev

안내대로 제거하고 워크디렉토리에서 npm i create-react-app@lastest

npx create-react-app project-name으로 처리했다.

이러면 tool에서 쓰는게 편한게 아닌 상황

open project로 project를 열었으나 귀찮게도 start configuraton에 start가 나타나지 않는다.

package.json에서 오른쪽 마우스 클릭. Show npm scripts! 나타남.

그림 1

package.json의 react dependancy를 확인해 보니 다음과 같다. v18

  "dependencies": {
    "@testing-library/jest-dom": "^5.16.4",
    "@testing-library/react": "^13.2.0",
    "@testing-library/user-event": "^13.5.0",
    "react": "^18.1.0",
    "react-dom": "^18.1.0",
    "react-scripts": "5.0.1",
    "web-vitals": "^2.1.4"
  },
반응형
Comments