Closed jabas06 closed 9 years ago
I have the same issue. On node v0.10.31, npm 1.4.23, yoeman 1.2.1 & angularfire 0.8.2.
/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/inquirer/node_modules/rx/dist/rx.all.js:8883
throw e;
^
Error: Cannot find module '../angularfire-config.json'
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> (/usr/local/lib/node_modules/generator-angularfire/app/index.js:12:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
There are a couple directories missing in the npm published version. I can't figure out why they aren't being picked up; they exist in the local repo. I've tried various tricks to bump them in npm with no success. I'll keep troubleshooting.
If you're in a rush, you should be able to work around this using the following approach:
git clone git@github.com:firebase/generator-angularfire.git
cd generator-angularfire
npm link generator-angularfire
cd <PROJECT DIRECTORY>
yo angularfire
Later, when you want to npm install -g the real version, you'll need to do:
npm unlink generator-angularfire
npm uninstall -g generator-angularfire
Actually, cloning and linking produced the same error for me. I could have done something wrong of course.
thanks katowulf
I've release v0.8.2-7 which should address the issues you guys have been running into. If you run into any issues, open a new issue here and I'll help you troubleshoot. Npm dependencies can really be a bear sometimes and this upgrade path wasn't pretty on my machine.
Do uninstall generator-angular and generator-angularfire before running npm install -g generator-angularfire.
I installed the 0.8.2 version of generator-angularfire with:
npm install -g generator-angularfire
When I run yo angularfire I get this error:
Error: Cannot find module '../angularfire-config.json' 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. (/usr/lib/node_modules/generator-angularfire/app/index.js:12:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
I'm on yo version 1.2.1