express : File C:\Users\MYPC\AppData\Roaming\npm\express.ps1 Error in Express js


 

The problem is that the execution policy is set on a per user basis. You'll need to run the following command in your application every time you run it to enable it to work:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned

There probably is a way to set this for the ASP.NET user as well, but this way means that you're not opening up your whole system, just your application.

Stack overflow link

Post a Comment

0 Comments