当前位置: 代码迷 >> 综合 >> cnpm 在power shell无法运行
  详细解决方案

cnpm 在power shell无法运行

热度:61   发布时间:2023-10-17 17:12:19.0

cnpm 在power shell无法运行

管理员模式下,在命令窗口下执行get-ExecutionPolicy

cnpm 在power shell无法运行

如果显示的是Restricted说明他是禁止的。
接下来就要执行set-ExecutionPolicy RemoteSigned回车,输入A 然后回车就好了。

cnpm 在power shell无法运行

如果报错

'set-ExecutionPolicy' 不是内部或外部命令,也不是可运行的程序 或批处理文件。
cnpm 在power shell无法运行
 

转到“开始”菜单,然后搜索“ Windows PowerShell ISE”。

右键单击x86版本,然后选择“以管理员身份运行”。

在顶部,粘贴Set-ExecutionPolicy RemoteSigned ; 运行脚本。 选择“全是”。

对64位版本的Powershell ISE(非x86版本)也重复这些步骤。

 

cnpm 在power shell无法运行


 

  相关解决方案