-->
create-react-app : File C:\Users\ADMIN\AppData\Roaming\npm\create-react-app.ps1 cannot be loaded because running
scripts is disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ create-react-app demo
最佳答案
我认为您使用的是 Windows,我遇到了同样的问题,这是由于您系统中的安全功能造成的。
- 以管理员身份打开 powershell。
- 运行以下命令
set-executionpolicy remotesigned
- 再试一次。
这对我有用。
来源:https://www.faqforge.com/windows/windows-powershell-running-scripts-is-disabled-on-this-system/
关于node.js - 我在创建 react 应用程序时遇到这样的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59561788/