1,新建项目报错。输入ng new myApp : 报错提示operation not permitted。
解决办法:npm cache clean –force
其他解决办法:删除C:\Users\{账户}\下的.npmrc文件.
2,Sqlserver连接报错:18456。修改属性后,选择重新启动。
3,No DbContext was found in assembly 'ABPAngularProject.Web.Host'. Ensure that you're using the correct assembly and that the type is neither abstract nor generic.
解决:确保程序包管理控制台中的默认项目选择的是‘EntityFrameworkCore’
4,更新Win10,原来的IIS站点访问不了,原因是因为IIS 没有.net 5
解决方法:升级Visual studio到15.9.17版本
5,VSCode错误提示:找不到模块“@angular/core“
解决方法:ctrl+shift+p,选择setting。搜索:experimentalDecorators,ranh
设置"javascript.implicitProjectConfig.experimentalDecorators": true,该选项默认为false,需要改为true,或者把前面的勾选加上。
npm uninstall -g angular-cli
npm install -g @angular/cli@latest
6,MongoDB插入时间与当前时间差8小时
解决:Time = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Unspecified).ToLocalTime()
7,Your global Angular CLI version (7.4) is greater than your local。
解决: npm install --save-dev @angular/cli@version
8,查看端口被占用 netstat -aon|findstr "49157"