When I faced this problem, by that time I have already tried triggering this command from Pwershell, both admin and non admin
Got this error:
''' ng : File C:\Users\vishi\AppData\Roaming\npm\ng.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1
- ng serve --open
- CategoryInfo : SecurityError: (:) [], PSSecurityException
- FullyQualifiedErrorId : UnauthorizedAccess '''
Then I tried running from CMD as this issue was because of security policies applied on Powershell, then CMD showed this error:
'''The new command requires to be run outside of a project, but a project definition was found at C:\Users\vishi\ImprovApp\angular.json". '''
My question here is, if we are not part of admin group then we can not alter the PS security policy then is there any other way that we can run the nodejs Ng or npm commands ????