yarn start
出现以下错误
node:internal/crypto/hash:71
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
node 版本为18.16.0,切换node版本为16.16.0,重新yarn安装,则可重新启动
修改npm镜像
当项目安装的依赖被锁定版本,而且镜像找不到时,可以设置npm镜头。
>npm set registry https://registry.npmmirror.com
>npm config get registry
https://registry.npmmirror.com/
此处与上文无关。