create-react-app : File C:\Users\samar\AppData\Roaming\npm\create-react-app.ps1 cannot be loaded because running scripts is disabled on this system
create-react-app : File C:UserssamarAppDataRoaming pmcreate-react-app.ps1 cannot be loaded because running scripts is disabled on this system
In this tutorial, we will try to find the solution to "create-react-app : File C:UserssamarAppDataRoaming pmcreate-react-app.ps1 cannot be loaded because running scripts is disabled on this system" through programming.
Getting error `create-react-app : File C:\Users\samar\AppData\Roaming\npm\create-react-app.ps1 cannot be loaded because running scripts is disabled on this system` in my react app.-
Open terminal as an administrator and run below command to get the solution for error
create-react-app : File C:\Users\samar\AppData\Roaming\npm\create-react-app.ps1 cannot be loaded because running scripts is disabled on this system
.Move to your project root directory and run below command.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
If you aren't able to run the command as an administrator, try running it with the CurrentUser parameter.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
Don't forget to share this article! Help us spread the word by clicking the share button below.
We appreciate your support and are committed to providing you valuable and informative content.
We are thankful for your never ending support.
Random Code Snippet Queries: Nodejs
- Axios Delete request with body and headers in ReactJS
- How to convert query string to json object in node js
- RESOLVE unable to resolve dependency tree
- Get list of all installed packages in node project
- How to convert json object to query string in node js
- How to check if chart.js is installed ?
- How to check the version of installed package with NPM
- Npm ERR! missing script: start