在安装了cnpm和tyarn后在windows powershell中使用该命令出现以下情况: 此时以管理员身份运行powershell,然后输入命令: set-ExecutionPolicy RemoteSigned 然后选择a或y,即可!