ionic : 无法加载文件 C:\Users\hp\AppData\Roaming\npm\ionic.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsof

cnpm : 无法加载文件 C:\Users\hp\AppData\Roaming\npm\cnpm.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的
about_Execution_Policies。
所在位置 行:1 字符: 1
cnpm install amfe-flexible

  •   + CategoryInfo          : SecurityError: (:) [],PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess
    

解决办法:

以管理员身份运行power shell

按图中黄色字体输入,显示结果一样说明正确
在这里插入图片描述

posted @ 2022-07-27 18:02  别让我委屈  阅读(217)  评论(0)    收藏  举报