adopted-ember-addons / adopted-ember-addons/ember-cli-windows

Ember-cli-windows error on Console

未關閉
#33 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
76
分支
11
PR 合併指標
30 天內沒有已合併 PR

描述

I have this error each time i run ember-cli-windows

Configuration Error: Get-Command : The term 'Set-MpPreference' is not recognized as the name of a cmdlet, function, scr
ipt file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try

Configuration Error: again.
At C:\Users\Riliwan\AppData\Roaming\npm\node_modules\ember-cli-windows\powershell\setup-defender.ps1:95 char:9
- if (Get-Command Set-MpPreference) {
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : ObjectNotFound: (Set-MpPreference:String) [Get-Command], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand

Automatic Defender configuration is only available on Windows 8 or newer.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

The failure points to powershell/setup-defender.ps1 at line 95, where Set-MpPreference is queried; start by reading that script and reproducing the command on the affected Windows version. Done should mean the setup no longer emits the reported command-not-found configuration error while retaining the intended Defender setup behavior.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript, powershell
領域
cli, operating-systems, tooling
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。