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?

  1. Run PowerShell in admin mode
  2. Go to the folder where is your Ember project
  3. Execute Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass. Note: more details about Set-ExecutionPolicy read at Microsoft site.
  4. 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”): y

PS C:\Sources\ember> ember windows
version: 0.2.7
Version: 1.3.3

Configuring Defender

Configuring Search

Removing file:///C:\Sources\ember\tmp\* from Search Index
Removing C:\Sources\ember from Windows Defender’s Eye

Path 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.

Comments

You can leave a response, or trackback from your own site.

Before you add comment see for rules.

Leave a Reply

Your email address will not be published. Required fields are marked *

7h3t9o