可以尝试以下步骤:
npm cache clean --force rm -rf node_modules rm package-lock.json npm install
node -v ng version
确保Node.js版本不低于8.9,并且安装了最新版本的Angular CLI。
ng add @angular/pwa
npm list -g --depth=0 npm uninstall -g
上一篇:安装angular/core的同依赖关系
下一篇:安装angular/pwa时,Schematic工作流程失败。