错误如下
中的 about_Execution_Policies。
所在位置 行:1 字符: 1
cnpm
+ CategoryInfo : SecurityError: (😃 [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
问题
vscode使用的powershell,导致权限不足
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/9f0fa1ea883400f22dd782da49d205cb.png)
方案
- 以管理员身份运行powershell
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/e1f3bf1e3a33428e8503c1c00b187083.png)
- 执行命令set-ExecutionPolicy RemoteSigned 选择 Y 更改策略
问题解决