首先node版本在16以上可以使用corepack enable开启,开启后在powershell中出现以下错误解决方案是,在管理员方式下运行set-executionpolicy remotesigned