但是在使用powers安装管理器后,我无法为此异常安装扩展程序。我在github仓库上找不到任何解决方案,这就是为什么我在这里提出问题。
例外:
Install-PhpExtension : The 'Install-PhpExtension' command was found in the module 'PhpManager', but the module could
not be loaded. For more information, run 'Import-Module PhpManager'.
我也确实运行过Import-Module PhpManager
然后显示了它,
Import-Module : File C:\Users\Md. Emtiaz
Zahid\Documents\WindowsPowerShell\Modules\PhpManager\1.13.0.176\PhpManager.psm1 cannot be loaded because running
scripts is disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
如果此问题对某人类似,并且对此有任何解决方案,请通知我。谢谢
答案 0 :(得分:0)
[已解决]
解决方案:
我认为Windows中存在一些访问权限问题。
here我找到了解决方案。
然后根据我的情况,我只运行该命令
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
及其作品!但是我不知道这个意思。如果有人知道这件事的细节,请告诉我。谢谢