Gulp serve reports an error gulp.ps1
Gulp: the file C: \ users \ administrator \ appdata \ roaming \ NPM \ gulp.ps1 cannot be loaded because running scripts is prohibited on this system. For more information, please refer to
about in HTTPS:/go. Microsoft. COM/fwlink /?LINKID = 135170_Execution_Policies。
location line: 1 character: 1
+ gulp serve
+ ~ ~ ~
+ CategoryInfo : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Solution:
Under project directory function set-executionpolicy RemoteSigned