mercredi 29 avril 2015

Ember.js install on Windows: Will not load app: Cannot find module 'ember-cli/lib/broccoli/ember-app'

Just installed ember.js on Windows machine (XP) - new to ember.js setting up dev machine.

Necessary components seem to be present and responsive.

$ember version gives me:

version: 0.2.3
node: 0.12.2
npm: 2.7.6

$npm version gives me:

{ alquimista: '0.0.0',
  npm: '2.7.4',
  http_parser: '2.3',
  modules: '14',
  node: '0.12.2',
  openssl: '1.0.1m',
  uv: '1.4.2-node1',
  v8: '3.28.73',
  zlib: '1.2.8' }

When I switch to my ember app directory and run

$ember server

I get an error

version: 0.2.3
Cannot find module 'ember-cli/lib/broccoli/ember-app'
Error: Cannot find module 'ember-cli/lib/broccoli/ember-app'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (Y:\webwork\emberjs\alquimista\Brocfile.js:3:16)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

Yes, I have confirmed "ember-cli/lib/broccoli/ember-app" exists and is in the PATH variable in a fully qualified form, c:/.. etc . But the error msg does not contain the fully qualified path so I wonder if ember.js is using a relative path on load? I don't know what base directory it would be starting from and referencing based on.

Does anyone have a suggested fix to get the ember server running on a Windows machine in a case like this?




Aucun commentaire:

Enregistrer un commentaire