etc

[React] You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0). 였λ₯˜ ν•΄κ²°

건망디 2022. 2. 28. 21:57

μ˜€λžœλ§Œμ— React μ‹€μŠ΅μ„ μœ„ν•΄ npx create-react-app λͺ…λ Ήμ–΄λ₯Ό μ‹€ν–‰ν–ˆλ”λ‹ˆ λ‹€μŒκ³Ό 같은 였λ₯˜κ°€ λ°œμƒν–ˆλ‹€.

You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0).

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/

 

μ‹œν‚€λŠ” λŒ€λ‘œ npm uninstall -g create-react-app λͺ…λ Ήμ–΄λ₯Ό μ‹€ν–‰ν•΄ λ³΄μ•˜λŠ”λ°λ„, 해결이 λ˜μ§€ μ•Šμ•˜λ‹€.

 

μ„œμΉ˜ν•΄ λ³΄μ•˜λ”λ‹ˆ, λ‹€μŒκ³Ό 같은 λͺ…령을 μˆœμ„œλŒ€λ‘œ μž…λ ₯ν•˜λ©΄ 해결이 λœλ‹€κ³  ν•΄μ„œ μ‹œλ„ν•΄ λ³΄μ•˜λ‹€.

 

npm uninstall -g create-react-app

npm add create-react-app

npx create-react-app

 

μ΄λ ‡κ²Œ ν–ˆλ”λ‹ˆ μ •μƒμ μœΌλ‘œ 잘 싀행이 λ˜μ—ˆλ‹€.

 

그런데, 이게 λ‚΄ μ»΄ν“¨ν„°μ—μ„œλŠ” μΌνšŒμ„± λ°©λ²•μœΌλ‘œ λ¨Ήν˜”λ˜κ±΄μ§€ 어쩐건지.. 두 번째둜 λ‹€λ₯Έ μœ„μΉ˜μ—μ„œ λ‹€μ‹œ create-react-app을 ν–ˆλ”λ‹ˆ 또 같은 였λ₯˜κ°€ λ°˜λ³΅λ˜μ—ˆλ‹€...🀬

 

κ·Έλž˜μ„œ λ‹€μ‹œ μ„œμΉ˜ν•΄λ³΄λ‹ˆ, μ•„λ¬΄λž˜λ„ npx μΊμ‹œ λ¬Έμ œμ˜€λ˜ 것 κ°™λ‹€.

 

npx clear-npx-cache

 

μœ„μ˜ λͺ…λ Ήμ–΄λ‘œ npx μΊμ‹œλ₯Ό μ‚­μ œν•˜κ³  λ‚˜λ‹ˆ, λ‹€λ₯Έ μœ„μΉ˜μ—μ„œ create-react-app을 μ—¬λŸ¬ 번 μ‹œλ„ν•΄λ„ μ •μƒμ μœΌλ‘œ 잘 μ‹€ν–‰λœλ‹€! πŸ₯³

 

 

 

 

μ°Έκ³ 

https://stackoverflow.com/questions/70358643/you-are-running-create-react-app-4-0-3-which-is-behind-the-latest-release-5-0