cursor终端唤醒openCode报错:在此系统上禁止运行脚本
·
笔者在windows终端通过npm命令安装opencode以后,在cursor终端试图使用,报错

这是powershell的执行策略限制问题
打开windows powershell界面,用管理员身份打开
输入下面的指令:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
然后它会询问你是否更改执行策略,输入Y
然后就可以在cursor终端唤醒opencode了。
更多推荐

所有评论(0)