angular – node_modules/@types/jasmine/index.d.ts:error TS1005:’=’expected

前端之家收集整理的这篇文章主要介绍了angular – node_modules/@types/jasmine/index.d.ts:error TS1005:’=’expected前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
之前我正在使用Angular2.3.1并使用npm update –save更新了package.json文件,以获得Angular2的更新版本2.4.7.

但是,出于某种原因,当我开始执行npm时,它似乎打破了代码.

它说

node_modules/@types/jasmine/index.d.ts(39,52): error TS1005: ‘=’ expected

现在,我想知道如何解决它?

任何的想法?

解决方法

在谷歌搜索后,发现@ types / jasmine的最新版本2.5.43与typescript版本2.0不兼容.*.

所以不得不将打字稿升级到2.1.6.

在这里阅读更多:https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14569

猜你在找的Angularjs相关文章