vue : 无法加载文件 C:UsersxxxAppDataRoaming pmvue.ps1,因为在此系统上禁止运行脚本

一、问题描述

  使用命令npm install vue-cli -g安装脚手架之后,创建Vue项目vue init webpack demo 提示“无法加载文件 C:UsersxxxAppDataRoaming pmvue.ps1,因为在此系统上禁止运行脚本”

二、解决方法

  使用管理员权限打开Windows power shell  执行命令:set-ExecutionPolicy RemoteSigned

原文地址:https://www.cnblogs.com/qtiger/p/13204072.html