expo version command shows running scripts disabled on this machine

前端 未结 6 1564
猫巷女王i
猫巷女王i 2021-01-03 11:40

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 exp

相关标签:
6条回答
  • 2021-01-03 12:20

    Trying to run expo start command via the integrated terminal of visual studio IDE which is by default not authorized.

    In such case you open the CMD and run it as an administrator and then type expo start in the project directory. This will work.

    For more information please visit this link

    0 讨论(0)
  • 2021-01-03 12:24

    Step1 : start power shell in administrator mode.

    Step2 : Type the following command "set-ExecutionPolicy RemoteSigned"

    Step3: Press Y for your Confirmation.

    0 讨论(0)
  • 2021-01-03 12:24

    . Open Settings, and click/tap on the Update & security icon. 2. Click/tap on For developers on the left side, check the Change execution policy to allow local PowerShell scripts to run without signing. Require signing for remote scripts. box under PowerShell on the right side, and click/tap on the Apply button.

    do this thing your problem must be solve if u r windows 10 user

    0 讨论(0)
  • 2021-01-03 12:31

    Solution 1:

    Trying to run expo start command via the integrated terminal of visual studio IDE which is by default not authorized.

    In such a case, you open the CMD and run it as an administrator mode and then type expo --version in the project directory. This will work.

    Solution 2:

    Try running the following command in PowerShell after running as administrator mode.

    Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy unrestricted type A Yes to All

    Now go and tried installing and then running ‘Expo’

    0 讨论(0)
  • 2021-01-03 12:38

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

    0 讨论(0)
  • 2021-01-03 12:40

    Step 1: You need to open your power shell or command line with ‘Run as Administrator’ by right-clicking on its icon.

    Step 2: You need to type in the following command:

    Set-ExecutionPolicy RemoteSigned

    refer

    Step 3: You will see the following message and permission request. Type ‘a’ and enter

    refer

    Solution 2:

    Try running the following command in PowerShell after running as administrator.

    Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy unrestricted

    Now go and tried installing and then running ‘Expo’

    0 讨论(0)
提交回复
热议问题