类型错误:无法读取未定义的属性(读取“isServer”)

And*_*ddy 5 cmd node.js npm lerna yarnpkg

尝试安装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)
Run Code Online (Sandbox Code Playgroud)

我在尝试安装时也出现同样的错误npm install --g lerna

我正在 CMD“命令提示符”中尝试这些命令

小智 1

请将cypress升级到12.6.0版本,并将代码迁移到新版本。这应该有用,对我有用。