expo version command shows running scripts disabled on this machine

前端 未结 6 1695
猫巷女王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: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’

提交回复
热议问题