search

Home  >  Q&A  >  body text

touch : File C:\Users\AppData\Roaming\npm\touch.ps1 cannot be loaded because running scripts is disabled on this system

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

%E

P粉905144514P粉905144514272 days ago455

reply all(1)I'll reply

  • P粉384244473

    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

    reply
    0
  • Cancelreply