I am a beginner learning React and Node.js. When I run touch 'index.js' command in server it shows 'touch : File C:\Users\sandu\AppData\Roaming\npm\touch.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see
about_Execution_Policies is located at https://go.microsoft.com/fwlink/?LinkID=135170. On line: 1 Characters: 1
+ CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess'
%E
P粉3842444732024-03-27 10:58:48
Sanduni It seems you need to set the execution policy to RemoteSigned
on Powershell. Just run the following command on powershell.
Set-ExecutionPolicy –ExecutionPolicy RemoteSigned