1.执行:
bash
npm install
2.报错信息:

3.原因:
(1)可能是nodejs版本问题,现在使用v22.14.0(LTS)
解决方法:
(2)镜像源不正确
解决方法: 使用下面这个
bash
npm config set registry https://registry.npmmirror.com
最后,重新npm Install.