create-react-app 创建React应用时,日志错误:密码操作失败,

8ftvxx2r  于 2个月前  发布在  React
关注(0)|答案(3)|浏览(51)

PS E:\VS projs\react-app> npx create-react-app app

Creating a new React app in E:\VS projs\react-apps\app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILED
npm ERR! A4250000:error:1C800066:Provider routines:ossl_gcm_stream_update:cipher operation
failed:c:\ws\deps\openssl\openssl\providers\implementations\ciphers\ciphercommon_gcm.c:312:
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ruturaj_k\AppData\Local\npm-cache\_logs\2022-01-30T09_11_05_521Z-debug-0.log

Aborting installation.
  npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Deleting generated file... node_modules
Deleting generated file... package.json
Deleting app/ from E:\VS projs\react-apps
Done.

我在网上搜索了这个问题,似乎没有人遇到过。有人能解释一下吗?
我尝试清除缓存 "npm cache clean --force",重新安装了node.js,但似乎没有效果
node.js和npm版本

E:\VS projs>node -v
v17.4.0

E:\VS projs>npm -v
8.4.0

Node JS SSL ISSUE
上述解决方案对我不起作用

zzwlnbp8

zzwlnbp81#

我解决了这个问题,只需进入Windows设置 -> 网络重置 -> 现在重置并点击重置...然后重启你的电脑。这对我有效。

qyyhg6bp

qyyhg6bp2#

我解决了这个问题,只需进入Windows设置 -> 网络重置 -> 现在重置并点击重置...然后重启你的电脑。这对我有效
你用这个方法解决了问题吗?

k3bvogb1

k3bvogb13#

@JosueBCe 是的,我做了。

相关问题