c#--ABP+Angular安装环境错误记录

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"

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值