Tuesday, 1 June 2021

Yarn and Nodemon Error in VsCode or PowerShell

Open PowerShell (Run As Administrator)
Check the current execution policy using this command  
      Get-ExecutionPolicy
# You should get 'Restricted'
Run this command to make it 'Unrestricted'
    Set-ExecutionPolicy Unrestricted
Check again whether execution policy changed by running this command
    Get-ExecutionPolicy    
   # You should get     
'Unrestricted'    
Now try to run nodemon , yarn etc

No comments:

Post a Comment