Can't get Ember working


#1

Hi, i’ve been trying to start a new app with ember but i can’t get the starter app template to work and always get the same error Cannot find module '/home/remi/my-app/bower_components/ember/ember-template-compiler':

➜  ~  node --version
v4.2.3
➜  ~  npm --version
2.14.7
➜  ~  npm install ember-cli -g
➜  ~  ember -v
version: 1.13.13
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
node: 4.2.3
npm: 2.14.10
os: linux x64
➜  ~  ember new my-app
[...]
Successfully initialized git.
Installed packages for tooling via npm.
Installed browser packages via Bower.
➜  ~  cd my-app 
➜  my-app git:(master) ember s
version: 1.13.13
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
Cannot find module '/home/remi/my-app/bower_components/ember/ember-template-compiler'
Error: Cannot find module '/home/remi/my-app/bower_components/ember/ember-template-compiler'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Class.module.exports.included (/home/remi/my-app/node_modules/ember-cli-htmlbars-inline-precompile/index.js:17:20)
    at EmberApp.<anonymous> (/home/remi/my-app/node_modules/ember-cli/lib/broccoli/ember-app.js:339:15)
    at Array.filter (native)
    at EmberApp._notifyAddonIncluded (/home/remi/my-app/node_modules/ember-cli/lib/broccoli/ember-app.js:334:45)
    at new EmberApp (/home/remi/my-app/node_modules/ember-cli/lib/broccoli/ember-app.js:105:8)
    at module.exports (/home/remi/my-app/ember-cli-build.js:6:13)

I tried different things but couldn’t find much help on the web. What should i do?


#2

Did you try to use old version of nodejs? You can use nvm if you need have many versions on nodejs.

I am not sure, but look like I had errors like this when I tried to use node 5. Now I use nodejs 0.12.8 and I have not problems.