expo version 命令显示在这台机器上禁用的运行脚本 [英] expo version command shows running scripts disabled on this machine

查看:91
本文介绍了expo version 命令显示在这台机器上禁用的运行脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 Windows 10 机器上开发一个 React Native 项目.我安装了 node js,然后通过 Visual Studio 代码终端安装了 expo cli.然后我尝试了命令expo --version,终端显示错误::

I am trying to develop a react native project in my Windows 10 machine. I installed node js then expo cli via visual studio code terminal. Then I tried the command expo --version, the terminal shows error::

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

给定的链接显示了很多东西,但是我该怎么做才能解决我的问题?谢谢!!!

the given link shows many things, but what shall I do to solve my problem? Thank You!!!

推荐答案

只需尝试以管理员身份打开 Windows PowerShell 运行,然后运行此命令行:Set-ExecutionPolicy RemoteSigned

Just try to open Windows PowerShell run as administrator and then run this command line: Set-ExecutionPolicy RemoteSigned

这篇关于expo version 命令显示在这台机器上禁用的运行脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆