Local workspace file angular.json could not be found

 

很多同学都会遇到这个错误,现在我们来解决一下

 

Local workspace file angular.json could not be found_第1张图片

一:

ng update @angular/cli --migrate-only --from=1.7.4

二:

npm install --save-dev @angular/[email protected]

三:

ng update @angular/cli --migrate-only --from=1.7.4

安装之后又出现了这个错误:

Package require os(darwin) not compatible with your platform(win32)

解决方法:

npm update
npm install
nodejs node_modules/node-sass/scripts/install.js
npm rebuild node-sass

然后ng -serve

成功!

你可能感兴趣的:(Local workspace file angular.json could not be found)