Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

生成项目运行报错 #593

Open
sparklerl opened this issue Jan 18, 2023 · 4 comments
Open

生成项目运行报错 #593

sparklerl opened this issue Jan 18, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@sparklerl
Copy link

选择.net5、前端选择react生成项目在运行时出错
提示
“fail: Microsoft.AspNetCore.SpaServices[0]
Error: error:0308010C:digital envelope routines::unsupported”

查了下,可能是react和Openssl版本问题导致的,不太明白在框架中咋解决这个问题。
20230118164059

@sparklerl sparklerl added the bug Something isn't working label Jan 18, 2023
@sparklerl
Copy link
Author

选择VUE作为前端还是会报这个错误

Nodejs版本是v18.13.0
20230118170501

@LGinC
Copy link

LGinC commented Feb 7, 2023

image
ClientApp\package.json增加--openssl-legacy-provider

原因是你安装的node版本过高了

@sparklerl
Copy link
Author

image ClientApp\package.json增加--openssl-legacy-provider

原因是你安装的node版本过高了

谢谢大佬,react的可以跑起来了!VUE的类似的问题,我查了解决方法是要加 set NODE_OPTIONS=–openssl-legacy-provider在构建之前,但是我不知道加在package.json的那个位置,build项里面加了没成功。

@sparklerl
Copy link
Author

image ClientApp\package.json增加--openssl-legacy-provider
原因是你安装的node版本过高了

谢谢大佬,react的可以跑起来了!VUE的类似的问题,我查了解决方法是要加 set NODE_OPTIONS=–openssl-legacy-provider在构建之前,但是我不知道加在package.json的那个位置,build项里面加了没成功。
image
加在这两个位置,可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants