如何在node_modules/@types/moment-timezone/moment-timezone.d.ts(50,73)中修复此错误 [英] How to fix this ERROR in node_modules/@types/moment-timezone/moment-timezone.d.ts(50,73)
本文介绍了如何在node_modules/@types/moment-timezone/moment-timezone.d.ts(50,73)中修复此错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在node_modules中遇到错误,如何解决在node_modules/@types/moment-timezone/moment-timezone.d.ts(50,73)
I am getting an error in node_modules, how can I fix this ERROR in node_modules/@types/moment-timezone/moment-timezone.d.ts(50,73)
ERROR in node_modules/@types/moment-timezone/moment-timezone.d.ts(50,73): error TS1005: ';' expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(50,88): error TS1005: ';' expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(50,107): error TS1005: ';' expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(51,23): error TS1005: ';' expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(51,45): error TS1005: ')' expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(51,67): error TS1109: Expression expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(51,70): error TS1005: ';' expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(51,71): error TS1128: Declaration or statement expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(51,75): error TS1005: ';' expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(52,28): error TS1005: ',' expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(52,50): error TS1109: Expression expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(52,60): error TS1005: ';' expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(53,16): error TS1005: ';' expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(54,23): error TS1109: Expression expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(54,33): error TS1005: ';' expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(56,25): error TS1109: Expression expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(56,34): error TS1005: ';' expected.
node_modules/@types/moment-timezone/moment-timezone.d.ts(67,1): error TS1128: Declaration or statement expected.
推荐答案
更改package.json文件中的代码.
Change your code inside the package.json file.
从目录中删除 node_modules
和 package-lock.json
.
然后更改版本并运行 npm install
.
"@types/moment-timezone": "^0.5.7",
收件人:
"moment-timezone": "0.5.23",
这篇关于如何在node_modules/@types/moment-timezone/moment-timezone.d.ts(50,73)中修复此错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文