[NPM] --legacy-peer-deps

In case running into peer deps issue, one thing we can do (maybe unsafe) is using --legacy-peer-deps

We can use this in case, some framework publish a new major version, but some libraries related to that framework doesn't updates it's peerDependiencies in time, and we know it is still safe to use this library; in that case, this flag is safe to use

posted @ 2024-11-06 15:31  Zhentiw  阅读(5)  评论(0编辑  收藏  举报