package.json์์ dependencies ์ต์ ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธํ๊ธฐ
Next.js๋ฅผ ์ฌ์ฉํ์ฌ ์งํํ๊ณ ์๋ ์ฌ์ด๋ ํ๋ก์ ํธ์์ ์๋ํํฐ ์คํฌ๋ฆฝํธ๊ฐ ๋ค์ด๊ฐ๋๋ฐ ์๋ฌด๋ฆฌ next/script๋ฅผ ์ฌ์ฉํด๋ด๋ ๋ก๋๊ฐ ๋์ง ์๋ ๊ฒ์ด์๋ค... ๊ตฌ๊ธ์ ํค์ง๊ณ ๋ค๋๋ค๋ณด๋ ๋์ ๋น์ทํ ๊ฒฝํ์ ํ ๊ฐ๋ฐ์๋ค์ด ์์๊ณ Next 12.1.6 ์ ๋ฒ๊ทธ๊ฐ ์์์ผ๋ 12.2.0์ผ๋ก ์ ๋ฐ์ดํธํ๊ณ ์๋ํด๋ณด๋ผ๋ ๊ฒ์ด์๋ค.
๊ทธ๋์ ์์ฑํ๊ฒ ๋ package.json์์ dependencies ์ต์ ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธํ๊ธฐ!
์ด ๊ธ์ ์คํ์ค๋ฒํ๋ก์ฐ์์ ์๋์ ๊ธ์ ์ฐธ๊ณ ํ๋ค.
https://stackoverflow.com/questions/16073603/how-to-update-each-dependency-in-package-json-to-the-latest-version
How to update each dependency in package.json to the latest version?
I copied package.json from another project and now want to bump all of the dependencies to their latest versions since this is a fresh project and I don't mind fixing something if it breaks. What's...
stackoverflow.com
npm i -g npm-check-updates
ncu -u
npm install
์์ ์์๋ก ์
๋ ฅํด์ฃผ๋ฉด ๋๋๋ฐ
npm i -g npm-check-updates๋ npm-check-updates๋ฅผ ํ๋ก์ ํธ ๋ฟ๋ง ์๋๋ผ ์์ ์ pc์ ์ค์นํ๋ ๊ฒ์ ์๋ฏธํ๊ณ
ncu -u๋ ํ๋ก์ ํธ์ package.json์ ๋ฒ์ ์ ์
๋ฐ์ดํธํด์ค๋ค.
npm install์ ํตํด์ ์
๋ฐ์ดํธ๋ ๋ฒ์ ์ผ๋ก ํจํค์ง๋ค์ ๋ค์ด๋ก๋ ํด์ค๋ค.
์ฐธ๊ณ ๋ก 12.2.0์์ ์๋ํํฐ ์คํฌ๋ฆฝํธ ๋ก๋๊ฐ ์ ๋๋ค๐