在使用ng项目的ui框架时,比如ng-zorro.angular Material,需要安装最新版本的@angular/cli: 配置ng-zorro框架 ng-zorro官网:https://ng.ant.design/#/docs/angular/getting-started 命令行执行下面的代码,配置ng-zorro $ npm install ng-zorro-antd --save 命令行 ng serve 打开项目,命令行报错 ERROR in Metadata version m
有时npm版本低了,一些操作有问题,要更新成最新. 官网中: https://www.npmjs.com/get-npm 先查看对应的 node 版本 和 npm版本 Check that you have node and npm installed To check if you have Node.js installed, run this command in your terminal: node -v To confirm that you have npm instal