NodeJS TypeError:无法读取未定义的属性(阅读“isServer”)

sd2nnvve  于 2023-03-07  发布在  Node.js
关注(0)|答案(1)|浏览(445)

当尝试在项目文件夹中安装yarn install时,出现错误

yarn install v1.22.15 
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz: 3224:error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac:c:\\ws\\deps\\openssl\\openssl\\ssl\\record\\ssl3_record.c:677:
".
info If you think this is a bug, please open a bug report with the information provided in "D:\\GitHub Projects\\wallet-adapter\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
node:_tls_wrap:411
        owner._tlsOptions.isServer ? 'server' : 'client', err,
                          ^

TypeError: Cannot read properties of undefined (reading 'isServer')
    at TLSWrap.onerror (node:_tls_wrap:411:27)

同样的错误发生在我身上,而试图安装npm install --g lerna
我正在CMD“命令提示符”中尝试这些命令

flvlnr44

flvlnr441#

请把cypress升级到12.6.0版本,并把代码迁移到新版本。这应该可以,对我来说很有效。

相关问题