angular学习

升级npm:npm install -g
windows 不支持n模块
升级node到官网下载
安装 angular-cli 失败
 
Windows下面安装angular-cli有两个典型的坑,一个是node-sass被墙了,第二个就是node-gyp依赖于某些API,需要安装Visual Studio
 
cnpm模块应对中国奇葩的环境   npm i -g cnpm
 
ng set --global packageManager=cnpm
 
npm i -g cnpm
cnpm i -g @angular/cli
cnpm install
ng serve
 
 

请把NiceFish根目录下的node_moduels目录删掉 然后依次执行以下命令:

npm cache clean
npm i -g cnpm
cnpm i -g @angular/cli
cnpm install
ng serve
 
ERROR in AppModule is not an NgModule
 
ng new my-app 失败?npm-gyp没安装,环境不行-  Environment setup and configuration
 
ie不兼容,引入IE10需要引入 ES6(IE9 引入ES6 classlist试了没有解决,) https://angular.io/docs/ts/latest/guide/browser-support.html
posted @ 2017-06-06 17:57  肖建春  阅读(204)  评论(0)    收藏  举报