Skip to content

androidjs init ... scripts is disabled on this system #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
joey-kwl opened this issue Nov 28, 2019 · 4 comments
Open

androidjs init ... scripts is disabled on this system #27

joey-kwl opened this issue Nov 28, 2019 · 4 comments

Comments

@joey-kwl
Copy link

Getting this error when trying to do androidjs init

androidjs : File C:\Users\{username}\AppData\Roaming\npm\androidjs.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
+ androidjs init
+ ~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException      
    + FullyQualifiedErrorId : UnauthorizedAccess
@Chhekur
Copy link
Member

Chhekur commented Mar 13, 2020

Getting this error when trying to do androidjs init

androidjs : File C:\Users\{username}\AppData\Roaming\npm\androidjs.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
+ androidjs init
+ ~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException      
    + FullyQualifiedErrorId : UnauthorizedAccess

first change your terminal to bash mode then it'll run as usual ; )

@divyasingh1
Copy link

divyasingh1 commented May 4, 2020

I faced exact problem in angular,
Steps to solve:

  1. Open Powershell as Administrator
  2. Now paste this command Set-ExecutionPolicy RemoteSigned and hit Enter
  3. Now type “A” and hit enter.

You can set the ExecutionPolicy on the Powershell as an Administrator with that command.

It worked for me.

@Chhekur
Copy link
Member

Chhekur commented May 5, 2020

@divyasingh1 @chineseouchie
Hey, we have created a slack channel for support & discussion: join here

@StreamerYT
Copy link

cmd
androidjs init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants