์ค๋๋ง์ 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์ ์ฌ๋ฌ ๋ฒ ์๋ํด๋ ์ ์์ ์ผ๋ก ์ ์คํ๋๋ค! ๐ฅณ

์ฐธ๊ณ
'etc' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[VSCode] ๊ธฐ๋ณธ Tab ๊ฐ๊ฒฉ๊ณผ ๋ค์ฌ์ฐ๊ธฐ ๋ฐฉ์ ๋ณ๊ฒฝํ๊ธฐ (0) | 2021.12.02 |
---|---|
[VScode] ํ์ฌ ์ฌ์ฉ์ค์ธ ํ์ฅ ํ๋ฌ๊ทธ์ธ (0) | 2021.08.13 |
๋ฆฌํฉํ ๋ง(Refactoring) (0) | 2021.06.28 |