So, I started playing with EmberJS framework. However, build times on Windows are longer than on Linux or Mac OS X. Much of that penalty is not because of node or ember-cli, but because of Windows services monitoring filesystem. So, I have installed npm package npm install --save-dev ember-cli-windows-addon
in order to configure Windows to work effectively with Ember build. Then, to start the automatic configuration, I run ember windows
and got error message:
Configuration Error: File C:\Sources\ember\node_modules\ember-cli-windows-addon\node_modules\e
Configuration Error: File C:\Sources\ember\node_modules\ember-cli-windows-addon\node_modules\e
mber-cli-windows\powershell\setup-search.ps1 cannot be loaded. The file C:\Sources\ember\node_modules\ember-cli-windows-addon\node_modules\ember-cli-windows\power shell\setup-search.ps1 is not digitally signed. The script will not execute on the system . Please see “get-help about_signing” for more details..
At line:1 char:5<
How do I fix it?
- Run PowerShell in admin mode
- Go to the folder where is your Ember project
- Execute
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
. Note: more details about Set-ExecutionPolicy read at Microsoft site. - Run
ember windows
to configure Windows
Result
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.PS C:\Sources\ember> Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic. Do you want to change the execution
policy?
[Y] Yes [N] No [S] Suspend [?] Help (default is “Y”): yPS C:\Sources\ember> ember windows
version: 0.2.7
Version: 1.3.3Configuring Defender
Configuring Search
Removing file:///C:\Sources\ember\tmp\* from Search Index
Removing C:\Sources\ember from Windows Defender’s EyePath added to defender exclusion list, updating policy
Done
Windows Search configured!
Finished Search Configuration.Done
Windows Defender configured!
Finished Defender Configuration.PS C:\Sources\ember>
Done.
Leave a Reply