angular2学习之踩坑经历;
一、当输入命令:ng g s servicename; 报错如:angular2Error: ELOOP: too many symbolic links encountered
解决方案:1.删除node_modules,重新 npm install;
2.卸载重装angular cli,在装之前先安装npm install -g typescript typings 命令,输入
npm install -g @angular/cli ,安装最新版本,后面加@latest命令安装的非最新版;
二、不能以div包在form表单,报错如下
Unexpected closing tag "div". It may happen when the tag has already been closed by another tag.
网友评论