为了账号安全,请及时绑定邮箱和手机立即绑定

ng test测试遇到的Can not load "webpack"!问题

在执行ng test时报错,Can not load "webpack"!,TypeError: Cannot read property 'plugin' of undefined

24 07 2018 09:49:00.763:ERROR [karma]: Found 1 load error

请老师指点一下,这个问题怎么解决?谢谢

正在回答

1 回答

It appears you have a much older version of the CLI (still using the package name angular-cli)

You will want to remove that package and install the current version...

npm uninstall angular-cli -g
npm install @angular/cli -g


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Angular-cli基础
  • 参与学习       25213    人
  • 解答问题       52    个

介绍Angular CLI命令使用,通过Angular CLI构建一个简单的Angular2的应用

进入课程

ng test测试遇到的Can not load "webpack"!问题

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信