Ember-cli update generates module error


#1

Hi, I just updated my ember-cli from 0.1.5 to 0.1.7. I followed exactly what the ember-cli.com website explains to update it, and now I get some dependencies error in my project when I run ember server.

Alexis$ ember s
version: 0.1.7
Cannot find module 'esutils'
Error: Cannot find module 'esutils'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Volumes/Alexis/path/to/app/node_modules/ember-cli-6to5/node_modules/broccoli-6to5-transpiler/node_modules/6to5-core/lib/6to5/types/index.js:1:77)

Why this dependency hasn’t been installed in same time than all other updates that ember did? I shouldn’t need to install manually this (and I guess all additional dependencies that are coming after that one), right?

What did I do wrong?

Thanks


#2

esutils is a dependency of 6to5. Most likely you have a broken local package.

Try nom (which is my alias for rm -rf node_modules && npm cache clear && npm install).


#3

It works fine now! Thanks


#4

When I’m desperate I also run:

 rm -rf bower_modules && bower cache-clean && bower install

mostly when in panic mode though.