I believe I have been confused about when to use
meteor npm v.
npm directly. I think the answer is for all things Meteor you need to only use
meteor npm, is that correct? Is there something introductory about meteor and npm? I have read the guide many times, but it does not seem to have a discussion of how to think about the global meteor npm repositories.
How should I think about the global
meteor npm stuff? Here is how I am beginning to think about it:
Meteor -g repository v. node -g repository
Meteor has a global repository of tools that it keeps for building the app, on windows I see this global repository of node_modules when I execute:
meteor npm list -g
I get a list of node_modules that are installed here:
C:\Users\<username>\AppData\Local\.meteor\packages\meteor-tool\1.4.0\mt-os.windows.x86_32\dev_bundle\lib\node_modules. To add packages to this repository I should run
meteor npm install <package_name> -g
npm keeps their own repository and on windows I can find it here:
C:\Users\<username>\AppData\Roaming\nvm\v4.4.7 C:\Program Files\nodejs
In essence for any tool required of meteor I only install to the meteor repository, I never use the tools from the
npm repository. correct?
Meteor app repository
The app repository is simply in the
node_modules directory at the root of my project.
npm package requires using
meteor npm install <packagename>. This is well documented in the guide.
Let me know if I have this improperly interpretted.