I’ve been having problems after problems using ember-cli. At first I could install it and create new ember projects with it.
I can’t think what I have done since then, but now I’m getting this when calling ember new app
Error: Cannot find module '../function/makeIterator_'
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> (/usr/local/lib/node_modules/ember-cli/node_modules/bower/node_modules/mout/array/collect.js:2:20)
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)
at require (module.js:384:17)
So I uninstall and install ember-cli
sudo npm uninstall ember-cli -g
sudo npm install ember-cli -g
I get lots of warnings like this during installation
npm WARN engine makeerror@1.0.10: wanted: {"node":"0.6.x"} (current: {"node":"0.12.0","npm":"2.5.1"})
npm WARN engine tmpl@1.0.3: wanted: {"node":"0.6.x"} (current: {"node":"0.12.0","npm":"2.5.1"})
/usr/local/bin/ember -> /usr/local/lib/node_modules/ember-cli/bin/ember
npm WARN unmet dependency /usr/local/lib/node_modules/generator-angular/node_modules/yeoman-generator/node_modules/file-utils requires lodash@'~2.1.0' but will load
Now I’m getting this error when calling ember new test-ember
Installing packages for tooling via npm.../usr/local/lib/node_modules/ember-cli/node_modules/npm/lib/utils/locker.js:66
throw new Error(
^
Error: Attempt to unlock /path/to/test-ember/node_modules/ember-cli-babel, which hasn't been locked
at unlock (/usr/local/lib/node_modules/ember-cli/node_modules/npm/lib/utils/locker.js:66:11)
at cb (/usr/local/lib/node_modules/ember-cli/node_modules/npm/lib/install.js:929:5)
at /usr/local/lib/node_modules/ember-cli/node_modules/npm/lib/install.js:933:20
at /usr/local/lib/node_modules/ember-cli/node_modules/npm/lib/utils/locker.js:40:9
at cb (/usr/local/lib/node_modules/ember-cli/node_modules/npm/node_modules/lockfile/lockfile.js:149:38)
at /usr/local/lib/node_modules/ember-cli/node_modules/npm/node_modules/lockfile/lockfile.js:177:38
at OpenReq.Req.done (/usr/local/lib/node_modules/ember-cli/node_modules/bower-config/node_modules/graceful-fs/graceful-fs.js:143:5)
at OpenReq.done (/usr/local/lib/node_modules/ember-cli/node_modules/bower-config/node_modules/graceful-fs/graceful-fs.js:63:22)
at FSReqWrap.oncomplete (fs.js:99:15)
This seems to be node or npm problem, or maybe ember-cli. Does anyone have any suggestion how I should go about fixing this? maybe trying to clean install node and npm?