--legacy-peer-deps vs --force when npm install
2024. 5. 28. 16:18ㆍBackup
https://stackoverflow.com/questions/66020820/npm-when-to-use-force-and-legacy-peer-deps
npm: When to use `--force` and `--legacy-peer-deps`
I'm trying to understand how recreating the node_modules directory for deployment works. We're using npm ci instead of npm install to ensure a clean slate during deployment. However, when we run it
stackoverflow.com
https://github.blog/2021-02-02-npm-7-is-now-generally-available/
npm 7 is now generally available!
We’re announcing version 7 of the npm CLI is now generally available.
github.blog
--legacy-peer-deps : peerDependency 무시
--force : 더 안전하다... 항상 이상적인 것은 아님. 추가 공간을 차지하기 때문.
( --force를 사용하면 충돌하는 peerDependencies가 루트 프로젝트에 설치되도록 허용)
'Backup' 카테고리의 다른 글
vue syntax highlight 적용 방법 (0) | 2024.06.09 |
---|---|
프론트엔드와 THE TWELVE-FACTOR APP | 프론트엔드와 SOLID 원칙 (0) | 2024.06.09 |
docker elasticsearch in mac setting (0) | 2024.03.21 |
mac / elasticsearch autocomplete 설정기 (2) (3) | 2024.03.14 |
mac / elasticsearch autocomplete 설정기 (1) (0) | 2024.03.12 |