Update this solution describes how to effectively use the new Npm system in Meteor.
What is the current method of using NPM packages in Meteor?
As of March 22, 2013, there is no official documentation on this.
There are several questions about this, notably this one, however the solution seems outdated: the engine branch no longer exists, and I haven't been able to find anything on Npm.require
in Meteor.
Another solution, posted here, instructs to install into the .meteor/
build folders. As I am installing to Heroku, this doesn't seem like a valid solution, as the buildpack uses meteor bundle
to bundle the program before running it. Thus, the temporary build folders don't seem like a valid option.
What has happened to Npm in meteor? What's the latest way of using Npm packages?
On a related note, I'm trying to use the Amazon SDK (for s3) - would it be better to just package it as a Meteorite package instead?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…