当你在使用 Node.js 运行程序时,如果出现了 "node: --openssl-legacy-provider is not allowed in NODE_OPTIONS" 的错误提示,这是因 为在 NODE_OPTIONS 环境变量中使用了 --openssl-legacy-provider 选项,而该选项已经被弃用。
解决办法: 找到图下的两个地方然后把 "set NODE_OPTIONS=--openssl-legacy-provider &" 删掉
当你在使用 Node.js 运行程序时,如果出现了 "node: --openssl-legacy-provider is not allowed in NODE_OPTIONS" 的错误提示,这是因 为在 NODE_OPTIONS 环境变量中使用了 --openssl-legacy-provider 选项,而该选项已经被弃用。
解决办法: 找到图下的两个地方然后把 "set NODE_OPTIONS=--openssl-legacy-provider &" 删掉