windows终端命令受限
在windows系统上,通过以下命令安装pnpm包管理工具,然后在终端执行pnpm -v
会报错
npm install -g pnpm
pnpm -v # 报错
运行get-ExecutionPolicy,显示Restricted(受限的)
get-ExecutionPolicy
Restricted
运行set-ExecutionPolicy RemoteSigned,设置RemoteSigned
set-ExecutionPolicy RemoteSigned
再次查看
get-ExecutionPolicy
RemoteSigned
转载本文无需作者授权,但一定要标明为转载内容,并标明转载博客地址:https://www.cnblogs.com/ganto/articles/18074472