serve : 无法加载文件 F:\Node\node_global\serve.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution
_Policies。
所在位置 行:1 字符: 1
+ serve build
+ ~~~~~
+ CategoryInfo : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
在程序打包后,也安装好了serve,执行serve build时出错,搜到了解决办法,链接:https://www.cnblogs.com/caolonggang/p/12986378.html
具体如下:
以管理员身份 打开windows powershell 输入set-ExecutionPolicy RemoteSigned 选择 A 或者 Y 。就OK了,重新在vscode中运行serve build即可出现正确端口号。