Skip to content

Angular常见问题

L edited this page Mar 30, 2018 · 2 revisions

You have to be inside an angular-cli project in order to use the build command.

保证package.json存在

npm install -g @angular/cli@latest  

@angular\cli\models\config\config.js:89 throw new InvalidConfigError

保证.angular-cli.json文件有正确的json格式,包括注释都不能有:

//"index": "myindexfile.html",

参考资料:https://stackoverflow.com/questions/46262014/angular-app-fails-to-run-and-displays-invalid-config-error

Clone this wiki locally