我正在尝试将 PWA 功能添加到 Angular 8 项目中(使用 生成ng new
)。
ng add @angular/pwa --project projectname
得到错误:
Installing packages for tooling via npm.
+ @angular/pwa@0.803.19
added 5 packages from 2 contributors and audited 18965 packages in 6.091s
found 0 vulnerabilities
Installed packages for tooling via npm.
Cannot read property 'length' of undefined
有什么想法吗?
(其余ng
命令工作正常,我可以提供服务,构建生产广告等等)