ERROR in C:/phpStudy2018/PHPTutorial/WWW/Tms.Web/node_modules/@types/node/globals.d.ts(139,11):
139:11 Interface 'NodeRequire' cannot simultaneously extend types 'Require' and 'RequireFunction'.
Named property 'cache' of types 'Require' and 'RequireFunction' are not identical.
137 |
138 | // For backwards compability
> 139 | interface NodeRequire extends NodeJS.Require {}
| ^
140 | interface RequireResolve extends NodeJS.RequireResolve {}
141 | interface NodeModule extends NodeJS.Module {}
142 |
error in C:/phpStudy2018/PHPTutorial/WWW/Tms.Web/node_modules/@types/node/globals.d.ts
ERROR in C:/phpStudy2018/PHPTutorial/WWW/Tms.Web/node_modules/@types/node/globals.d.ts(139,11):
我的环境是vue.js +打字稿。我不知道我的配置或第三方软件包是否有任何问题,能否给我一些有用的建议,谢谢
--save-exact
flag或其他方式package.json
获取此行:"@types/node": "^12.12.22"
而不是确切的版本"12.12.22"