Cypress: Error "cannot be loaded because running scripts is disabled on this "

Created on 28 Dec 2019  路  4Comments  路  Source: cypress-io/cypress

Hi,
After installing 3.8.1 I am getting the following聽error when I run node_modules.bin\cypress open in terminal

node_modules.bin\cypress : File D:\CypressAutomation\node_modules.bin\cypress.ps1
system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1

  • node_modules.bin\cypress open
  • ~~~~~
    聽 聽 + CategoryInfo 聽 聽 聽 聽 聽: SecurityError: (:) [], PSSecurityException

Most helpful comment

I found the solution

I have faced the same problem

Solution :
In Window::
Open Windows PowerShell
Run Set-ExecutionPolicy RemoteSigned
Type Yes
Now Run run command ./node_modules/.bin/cypress run Test runner will work properly

All 4 comments

I found the solution

I have faced the same problem

Solution :
In Window::
Open Windows PowerShell
Run Set-ExecutionPolicy RemoteSigned
Type Yes
Now Run run command ./node_modules/.bin/cypress run Test runner will work properly

Hello, I have tried the above command still facing the issue. Could you please help with this.
After running the above command as an administrator it working fine thanks for your help.

Hello, I have tried the above command still facing the issue. Could you please help with this.
After running the above command as an administrator it working fine thanks for your help.

Thank you for your solution to run as administrator. It has taken a time to me to understand where is a problem.

I found the solution

I have faced the same problem

Solution :
In Window::
Open Windows PowerShell
Run Set-ExecutionPolicy RemoteSigned
Type Yes
Now Run run command ./node_modules/.bin/cypress run Test runner will work properly

@Kailash1980 Thank you for the solution. Now its working fine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tahayk picture tahayk  路  3Comments

weskor picture weskor  路  3Comments

zbigniewkalinowski picture zbigniewkalinowski  路  3Comments

egucciar picture egucciar  路  3Comments

carloscheddar picture carloscheddar  路  3Comments