[英]Angular 4 project ng build --prod fail
My Angular project is @Angular4.0.0. 我的Angular项目是@ Angular4.0.0。
Angular CLI: 1.7.4 角CLI:1.7.4
Node: 6.9.5 节点:6.9.5
I'm getting the following errors while trying to run npm install and ng build --prod. 尝试运行npm install和ng build --prod时出现以下错误。
npm install errors npm安装错误
ng build --prod error ng build --prod错误
Please anyone help me to resolve this problem.? 请任何人帮助我解决此问题。
It has missing peer dependencies, install the peer dependencies yourself. 它缺少对等项依赖关系,请自行安装对等项依赖关系。 for example: 例如:
npm install bootstrap firebase
for your problem that should be: npm install bootstrap@4.0.0
npm install --save firebase@4.13.1
对于您的问题应该是: npm install bootstrap@4.0.0
npm install --save firebase@4.13.1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.