Angular Js执行ng serve 报错 Cannot read property 'config' of null
开始使用Angular js编码了,一切就绪,执行ng serve,满心欢喜等待项目启动,结果。。。报错啦。。。啦啦啦。。
悲催了吧,傻眼了吧。 Don't worry!!
到你的Angular JS工程根目录下去,看看结构目录,正常结构目录的应该是:
而出现上述错误的原因是你的项目缺少了“.angular-cli.json”文件,那么知道原因了,就好解决了,新建一个工程 ng new testApp
然后到testApp目录下把缺失的文件copy到你启动错误的项目根目录去,然后再启动,看看。
是不是已经解决了这个错误了