ember-cli-windows
ember-cli-windows copied to clipboard
Ember-cli-windows error on Console
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.
Hey, thanks for reporting! Which version of Windows are you running on? As the error message says, automatic Defender configuration is only available on Windows 8 or newer.
@felixrieseberg I run windows 10. Could it be a disk problem ?
Interesting - do you have Windows Defender running? The script should give you a pretty message if defender is disabled, but what you're seeing might just mean that defender isn't running.
ok. I have it running, I turned it off manually and it still throws the error. I used to have a smart disk error too. So i changed the disk recently after backup and it works in my new OS. I have no idea why this is. I f you do pls explain otherwise this issue can close. cheers.
Same issue here, but Defender is not in use. Running Trend Micro on Windows 10.
I have the same issue on win 8, because I turned off Defender... but as I saw on the code that the script excludes the path from Defender, so I guess that this part and error has no incidence since the defender is turned off, so already is not working on this path, am I all right?