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
Similar Posts:
- [Solved] yarn: Unable to load the File C:\Users\Administrator\AppData\Roaming\npm\yarn.ps1, Because running scripts is prohibited on this system.
- [Solved] Vue : The file D:\Program Files\nodejs\node_global\vue.ps1 could not be loaded, because running scripts is disabled on this system.
- [Solved] Rename failed for user ‘dbo’ -MS SQL ERROR 15150
- This project references NuGet package(s) that are missing on this computer. Enable NuGet Package …
- How to Solve Error: Cannot find module ‘gulp-sass’
- Solution to the problem of bash: gulp: command not found after installing gulp in Windows system
- GulpThe following tasks did not complete [How to Solve]
- gulp Cannot read property ‘apply’ of undefined
- [Solved] TSC Compile TS File Error: TSC: the file cannot be loaded because running scripts is prohibited on this system;
- [Solved] PowerShell Error: the script is prohibited from running on this system