Wednesday, 15 April 2015

What is the best way to precompile EmberJS templates on Windows -


I'm trying to determine the best way to precompile an EmberJS template using Windows and not any good choice Can get it.

Can someone recommend a well proven solution?

I am using Amber v 1.10.0

EDIT: I have installed the latest version of NODJS and followed it.

For the record, I am using Windows 8.1 running on a surface Pro 2.

I have tried to set up Amber CLI using nodes and I get the following error (s):

  C: \ & nt; Npm install -g ember-cli npm WARN engine makeerror@1.0.10: wanted: {"node": "0.6.x"} (current: {"node": "0 12.0", "NPM": "2.5. 1 "}) NPAM engine engine tmpl@1.0.3: wanted: {" node ":" 0.6.x "} (current: {" node ":" 0.12.0 "," npm ":" 2.5.1 " }) C: \ user \ me \ apeda \ roaming \ npm \ ember - & gt; C: \ user \ me \ apeda \ roaming \ npm \ node_modules \ ember-cli \ bin \ ember npm ERR! Windows_NT 6.3.9600 NMP ERR! Argv "C: \\ Program Files \\ node \\\\ node.exe" "C: \\ Program Files \\ Nodes \\ node_module \\ nmp \\ bin \\ npm-cLI.js" install " "-G" "Amber-CLI" NPM ERR! Node v0.12.0 NMP ERR! NPM v2.5.1 NMP ERR! Code EPEERINVALID NPM ERR! Peerinvalid package handlers do not satisfy the needs of their siblings' pyared dependency! NPM ERR! Peerinvalid peer ember -template-compiler@1.9.0 handbars @ ~ 1 npm wants ERR! Windows_NT 6.3.9600 NMP ERR! Argv "C: \\ Program Files \\ node \\\\ node.exe" "C: \\ Program Files \\ Nodes \\ node_module \\ nmp \\ bin \\ npm-cLI.js" install " "-G" "Amber-CLI" NPM ERR! Node v0.12.0 NMP ERR! NPM v2.5.1 NMP ERR! Uncuit, unspecified "Error" Event NPM ERR! NPM ERR! If you need help, you can report this error on: NPM ERR! & Lt; Http: //github.com/npm/npm/issues> NPM ERR! Please include the following file with any support request: NPM ERR! C: \ npm-debug.log  

It depends on which tools / The frameworks you are using:

  1. If you are using (and I strongly recommend it), then it is capable of compiling your template directly from the command line (and Much more) This is a bit slow on Windows which is working on the Unix system (due to issues with Symukel on Windows), the Amber team is working on it Use individually amber CLI on Windows and Linux Debian for Kts urge and it works great.
  2. If you do not want to use Amber CLI for now and work with Net then you can use it within ASP. Net MVC Project Note that in this case, the precompilation of your template will be when the server is started through.
  3. If you want to compile the template outside of any outline, you can install Node.js and you can use the package. This is probably the hardest way, but can be automated using a grunt or a gapple.

In general, whatever you use on the server (node, rail, python, net, java, ...) if you always use a server-side to handle precompilation The library will find.

I still recommend working with Amber CLI (since it is the future of amber, and not only

I know that you have a special environment and More details are required.

HTML>

No comments:

Post a Comment