1、win+s 在系统中搜索框 输入“Windos PowerShell”右击“管理员身份运行” 2、输入“set-ExecutionPolicy RemoteSigned”回车,根据提示输入A,回车 3、再次回到pnpm -v执行成功。