I have just updated npm firebase But I am facing the following error: .ps1 cannot be loaded because running scripts is disabled on this system in VueJS. In this Exerror article, We are going to learn about How to reproduce this error and we will discuss All Possible Solutions Let’s Get Start with This Article.
How .ps1 cannot be loaded because running scripts is disabled on this system Error Occurs?
I have just updated npm firebase But I am facing the following error:
.ps1 cannot be loaded because running scripts is disabled on this system
So here I am writing all the possible solutions that I have tried to resolve this error.
How To Solve .ps1 cannot be loaded because running scripts is disabled on this system Error?
- How To Solve .ps1 cannot be loaded because running scripts is disabled on this system Error?
To Solve .ps1 cannot be loaded because running scripts is disabled on this system Error Open Your Powershell with administration privilege and Run the following command in your PowerShell: Set-ExecutionPolicy RemoteSigned OR You can use this command too: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser Now, your error will be solved successfully.
- .ps1 cannot be loaded because running scripts is disabled on this system
To Solve .ps1 cannot be loaded because running scripts is disabled on this system Error Just Find .ps1 file path and delete this .ps1 file and your error will be solved. In My Case, I have a Problem with the firebase Package And my ps1 file path was C:\Users\ssc\AppData\Roaming\npm\firebase.ps1 I just deleted firebase.ps1 was deleted and my error was solved. Thank You.
Solution 1: Delete .ps1 file
To Solve .ps1 cannot be loaded because running scripts is disabled on this system Error Just Find .ps1 file path and delete this .ps1 file and your error will be solved. In My Case, I have a Problem with the firebase Package And my ps1 file path was C:\Users\ssc\AppData\Roaming\npm\firebase.ps1 I just deleted firebase.ps1 was deleted and my error was solved. Thank You.
Solution 2: Set-ExecutionPolicy RemoteSigned
Open Your Powershell with administration privilege and Run the following command in your PowerShell.
Set-ExecutionPolicy RemoteSigned
OR You can use this command too.
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Now, your error will be solved successfully.
Solution 3: run this
Run this command in your PowerShell With Admin.
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
Conclusion
It’s all About this error. I hope We Have solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read
- ‘vue-cli-service’ is not recognized as an internal or external command
- ERR!ERR! find VSfind VS msvs_version not set from command line or npm config VCINSTALLDIR not set
- Unchecked runtime.lastError: The message port closed before a response was received
- export ‘default’ (imported as ‘Vue’) was not found in ‘vue’
- npm WARN using –force Recommended protections disabled