angular2 运行出错

[email protected] prestart D:\githubAngular\onepiecetemp
npm run build


m WARN invalid config loglevel="notice"


[email protected] build D:\githubAngular\onepiecetemp
tsc -p src/


c/app/articleList.component.ts(6,3): error TS1146: Declaration expected.
m ERR! code ELIFECYCLE
m ERR! errno 2
m ERR! [email protected] build: `tsc -p src/`
m ERR! Exit status 2
m ERR!
m ERR! Failed at the [email protected] build script.
m ERR! This is probably not a problem with npm. There is likely additional log
ng output above.


m ERR! A complete log of this run can be found in:

angular2 运行出错

网上搜查了很多天这个问题!  网上各种各样的说法也都有!但是都没有解决我的问题!

后台再查看这段错误的时候,发现当时漏掉了一段错误信息 src/app/articleList.component.ts(6,3): error TS1146: Declaration expected.

后台查看,是我的这个文件有问题! 解决之后重新 npm install    npm start成功运行