Install dependencies from package.json:
npm install
yarn
Install a package and add to package.json:
npm install package --save
yarn add package
Install a devDependency to package.json:
npm install package --save-dev
yarn add package --dev
Remove a dependency from package.json:
npm uninstall package --save
yarn remove package
Upgrade a package to its latest version:
npm update --save
yarn upgrade
yarn upgrade react react-dom --latest
Install a package globally:
npm install package -g
yarn global add package
'React > React Basic' 카테고리의 다른 글
package.json | package-lock.json (0) | 2022.04.21 |
---|---|
좋은 리액트 개발자가 되려면 (0) | 2022.04.20 |
[React] Spread Operator (0) | 2022.04.04 |
[React] Changing Complex State | 풀네임 받기 | form input prevValue (0) | 2022.03.28 |
[React] State 란? (0) | 2022.03.26 |
댓글