Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

missing template processor ember

Tags:

ember.js

Very new on using ember (and a js framework in general) i'm following the official guide on the ember site, installed the ember-cli and create a test app but when i 'server' it a get this message:

Missing template processor
Error: Missing template processor 
at module.exports.preprocessTemplates C:\Users\vittorio\AppData\Roaming\npm \node_modules\ember-cli\lib\preprocessors.js:164:11)
at EmberApp._processedTemplatesTree (C:\Users\vittorio\AppData\Roaming\npm\node_modules\ember-cli\lib\broccoli\ember-app.js:567:10)
at EmberApp.appAndDependencies (C:\Users\vittorio\AppData\Roaming\npm\node_modules\ember-cli\lib\broccoli\ember-app.js:808:24)
at EmberApp.javascript (C:\Users\vittorio\AppData\Roaming\npm\node_modules\ember-cli\lib\broccoli\ember-app.js:882:34)
at EmberApp.toArray (C:\Users\vittorio\AppData\Roaming\npm\node_modules\ember-cli\lib\broccoli\ember-app.js:1248:10)
at EmberApp.toTree (C:\Users\vittorio\AppData\Roaming\npm\node_modules\ember-cli\lib\broccoli\ember-app.js:1270:30)
at Object.<anonymous> (e:\web\apps\test_ember\Brocfile.js:20:22)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)

I could not find easy enough info for a beginner and i'm just stuck.

Some info about my environment on windows 7:

$ ember --version
version: 0.2.3
node: 0.12.0
npm: 2.7.6
like image 965
vittorio maiullari Avatar asked Jan 08 '23 13:01

vittorio maiullari


2 Answers

I case anyone else is getting the same error when trying "ember server" command and the solution above doesn't work (didn't work for me). I realized I had to run:

npm install
bower install

before running the server; after doing this I was able to run "ember server" and worked good.

like image 178
Oxcarga Avatar answered Feb 28 '23 01:02

Oxcarga


ember-cli projects can be finicky about its module versions. Try to update your package caches and reinstall ember-cli:

bower cache clean && npm cache clean && npm install -g ember-cli
like image 39
mpowered Avatar answered Feb 28 '23 02:02

mpowered