小编Mah*_*had的帖子

在 Office 插件生成器 Yeoman 中运行“yo office”时出现执行策略错误

我想使用 yeoman 为带有 Angular 的办公室创建一个插件。在power shell中安装了nodeJs、Angular、yeoman、generator-office等需求工具后,我尝试运行此代码

yo office 
Run Code Online (Sandbox Code Playgroud)

但我收到了这个错误:

 yo : File C:\Users\ME\AppData\Roaming\npm\yo.ps1 cannot be loaded. 
The file C:\Users\ME\AppData\Roaming\npm\yo.ps1 is not digitally signed. 
You cannot run this script on the current system. 
For more information about running scripts and setting execution policy, 
see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ yo office
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess  
Run Code Online (Sandbox Code Playgroud)

powershell office-addins yeoman angular project-web-addins

3
推荐指数
1
解决办法
863
查看次数