Lompat ke konten Lompat ke sidebar Lompat ke footer

Solved! Nodemon.ps1 cannot be loaded because running scripts is disabled on this system.

Hello friends, welcome back to our Web Blog, namely Awonapa Jr. On this occasion we will learn about a programming language, namely the Javascript programming language. The material that we will discuss at this time is Learning Nodemon.ps1 cannot be loaded because running scripts is disabled on this system.

Solved Nodemon.ps1

Nodemon

Nodemon is a utility that will monitor for any changes in your source and automatically restart your server. Perfect for development. You need to install nodemon as a dev dependency since it is used only in the development environment.

When I running nodemon start there was a problem as shown below :

nodemon.ps1 error

nodemon : File C:\Users\Its a Man\AppData\Roaming\npm\nodemon.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
+ nodemon start
+ ~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

After trying various ways I finally came across several references that managed to solve this problem.

Solved Nodemon.ps1

Solving this problem is quite easy, you only need to delete the express.ps1 file in the express.js installation folder. If you see in my case, the location of the express.ps1 file is in this folder :

C: \ Users \ Its a Man \ AppData \ Roaming \ npm \ nodemon.ps1
  • Go to the folder C: \ Users \ nameuser \ AppData \ Roaming \ npm \
  •  Then delete the nodemon.ps1 file.

delete nodemon.ps1

If so, please repeat the command to run or create an engine in express.js, like the example image below:

solved nodemon.ps1
 

Good friends like that is the material that I can share in this article, which is about Solved! Nodemon.ps1 cannot be loaded because running scripts is disabled on this system.
Thank you for visiting and reading my writing, apologize if there are errors, please correct them by commenting.

Greetings! Awonapa.

Search Tags
nodemon.js error
nodemon.ps1 error
nodemon.ps1 cannot be loaded


4 komentar untuk "Solved! Nodemon.ps1 cannot be loaded because running scripts is disabled on this system."