Install error security because script executable was desabilited in my Windows system

There was an error trying to install. Printscreen below (in pt-br). I translate it: it’s a “about_Execution_policies” warning and a link to Microsoft’s terms: How can I resolve this? I already install node.js like tutorial says and my system is Windows 11.

There’s this thread about it, but it’s a Windows thing where on some PCs by default scripts are disabled, so you need to run a command to allow scripts on your machine.

Or from a search result in Stackoverflow:

  1. Start Windows PowerShell with the “Run as Administrator” option. Only members of the Administrators group on the computer can change the execution policy.
  2. Enable running unsigned scripts by entering:
set-executionpolicy remotesigned

This will allow running unsigned scripts that you write on your local computer and signed scripts from Internet. This will change the policy permanently.

See also Running Scripts at Microsoft TechNet Library.

2 Likes