I’m trying to migrate my angular-meteor project from Meteor 1.2 to Meteor 1.3. However, it has been challenging. I have tried to rebuild the project on a clean Meteor 1.3 starter, and also to upgrade the existing project. Right now I’m trying to upgrade the existing project again.
Upgrading existing project to 1.3 seems to be problematic, because “meteor npm install” stores node_modules in my home directory, and I really don’t know why.
(tom @ 192.168.1.36)-(~/Github/my-upgraded-app/client) (master) $ meteor npm install --save angular angular-meteor angular-meteor-auth angular-sanitize angular-animate angular-ui-router ionic-sdk angular-sanitize@1.5.5 ../../../node_modules/angular-sanitize angular-meteor-auth@1.0.3 ../../../node_modules/angular-meteor-auth angular-animate@1.5.5 ../../../node_modules/angular-animate angular-ui-router@0.3.0 ../../../node_modules/angular-ui-router angular@1.5.5 ../../../node_modules/angular angular-meteor@1.3.11 ../../../node_modules/angular-meteor ionic-sdk@1.2.4 ../../../node_modules/ionic-sdk
In a fresh project the similar command (with all those packages already installed) gives completely different output.
(tom @ 192.168.1.36)-(~/Github/my-fresh-app/client) (master) $ meteor npm install --save angular angular-meteor angular-meteor-auth angular-sanitize ../angular-animate angular-ui-router ionic-sdk angular-sanitize@1.5.5 ../node_modules/angular-sanitize angular-meteor-auth@1.0.3 ../node_modules/angular-meteor-auth angular-animate@1.5.5 ../node_modules/angular-animate angular-ui-router@0.3.0 ../node_modules/angular-ui-router angular@1.5.5 ../node_modules/angular angular-meteor@1.3.11 ../node_modules/angular-meteor ├── underscore@1.8.3 └── jsondiffpatch@0.1.43 (chalk@0.5.1) ionic-sdk@1.2.4 ../node_modules/ionic-sdk
And this is the error message in my browser console, which caused me to dig this thing deeper.
`WARNING: npm peer requirements not installed:
- angular@^1.2.27 not installed.
Read more about installing npm peer dependencies:
http://guide.meteor.com/using-packages.html#peer-npm-dependencies
install.js:78: Uncaught Error: Cannot find module ‘angular’`
So any ideas, how to fix wrong installation path for “meteor npm install” after migration?