如果项目使用的 yarn 和 typescript,可以査看yarn.lock里的@types/node@ 的 version:
"@types/node@*" :
"integrity" "sha1-ZhA9Ltxxxxxxxxxxxx"
"resolved" "https://registry.npm.taobao.xxxxxxxx"
"version" "12.12.5'
package-lock.json:
"node_modules/@types/node": {
"version": "22.5.1",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.1.tgz",
"integrity": "sha512-KkHsxej0j9IW1KKOOAA/XBA0z08UFSrRQHErzEfA3Vgq57eXIMYboIlHJuYIfd+lwCQjtKqUu3UnmKbtUc9yRw==",
"dev": true,
"dependencies": {
"undici-types": "~6.19.2"
}
},