use*_*591 6 windows terminal powershell windows-10 react-native
我正在尝试在我的 Windows 10 机器上开发一个 React Native 项目。我安装了 node js,然后通过 Visual Studio 代码终端安装了 expo cli。然后我尝试了命令expo --version
,终端显示错误::
expo : File C:\Users\saka\AppData\Roaming\npm\expo.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
+ expo --version
+ ~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Run Code Online (Sandbox Code Playgroud)
给定的链接显示了很多东西,但是我该怎么做才能解决我的问题?谢谢你!!!
Day*_*iye 10
将此代码粘贴到您的终端中
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
Run Code Online (Sandbox Code Playgroud)
按回车键
享受 :)
归档时间: |
|
查看次数: |
16300 次 |
最近记录: |