Visual Studio Code中angular项目调试
问题1:
An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json'
解决办法:
npm install -save-dev @angular-devkit/build-angular
问题2:执行npm install -save-dev @angular-devkit/build-angular报错
npm ERR! code Z_BUF_ERROR
npm ERR! errno -5
npm ERR! zlib: unexpected end of file
npm ERR! A complete log of this run can be found in:
解决办法:
npm cache clean --force
然后在执行操作即可
问题3:An unhandled exception occurred: Cannot find module '@angular-devkit/schematics'
解决办法:
npm install -save-dev @angular-devkit/schematics