Local workspace file angular.json could not be found

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/fjh19950514/article/details/81332801

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

一:

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

成功!

猜你喜欢

转载自blog.csdn.net/fjh19950514/article/details/81332801