์นดํ…Œ๊ณ ๋ฆฌ ์—†์Œ

[react] yarn ์œผ๋กœ react ์•ฑ ์ƒ์„ฑ, ์‹คํ–‰ํ•˜๊ธฐ

๐Ÿฉท ๋ฏผ์˜ 2023. 9. 2. 14:36

ํ‰์†Œ npm์„ ์ด์šฉํ•˜๋Š” ํŽธ์ด์—ˆ์ง€๋งŒ ์ด๋ฒˆ ์ƒˆ ํ”„๋กœ์ ํŠธ๋Š” yarn์„ ์ด์šฉํ•˜์—ฌ ์ง„ํ–‰ํ•ด๋ณด๋ ค ํ•œ๋‹ค.

๋จผ์ € yarn์œผ๋กœ ๋ฆฌ์•กํŠธ ํ”„๋กœ์ ํŠธ๋ฅผ ์‹คํ–‰ํ•ด๋ณด์ž

 

yarn ์œผ๋กœ ๋ฆฌ์•กํŠธ ์‹œ์ž‘ํ•˜๊ธฐ
npm install --global yarn
// npm์„ ์ด์šฉํ•ด์„œ !global!์— yarn ์„ค์น˜

yarn -- version

yarn create react-app my-app

yarn cd my-app

yarn start

npm๊ณผ react์•ฑ ์ƒ์„ฑ์ฝ”๋“œ๊ฐ€ ๋‹ค๋ฅด๋‹ˆ ํ™•์ธํ•˜์ž!!