Error in adding ng-zorro-antd to angular7

  • create a new project from the command line ng new today-ng
  • then cd today-ng enter the newly created project
  • add ng-zorro-antd via the command ng add ng-zorro-antd
  • the following error occurred:

  • asked the official to modify the source, so I used npm-- registry https://registry.npm.taobao.org info underscore to modify it to Taobao"s source, using the same set of commands above:
    ng new today-ng
    cd today-ng
    ng add ng-zorro-antd
  • as a result, the error is the same as above. If you ask the official again, you will not answer. How to solve this problem?
Jun.15,2022

has been resolved, just clear the npm cache.

Menu