Angular 4 with material

最后都变了- 提交于 2019-12-03 16:45:58

Double check your package.json dependencies and devDependencies file and find your typescript install. Make certain it is 2.2.0 or greater.

"typescript": "~2.2.0"

If you make a change, be sure to then run

$ npm update -D

If you have it installed globally and there is no typescript line in your package.json file, run

$ npm install -g typescript@2.2.0

In addition to above answer, i have added the screenshot of package.json file :

Go to your package.json and check dependencies and devDependies as shown below: package.json

Step 1: If the typescript version is less than 2.2.0 , change it to the latest vesrion as shown in the image.

Step2: Run npm update -D in your terminal

Step3: To globally update the typescript , execute following command:

npm install -g typescript@version-number

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!