npm @7比较严格,笔者使用npm install经常遇到报错中途停止,后面改用cnmp install但是有大佬说不推荐。 现在建议用 npm install --legacy-peer-deps 安装依赖。