Nils Ziehn
Nils Ziehn

Reputation: 4331

meteor deploy npm packages

I use multiple npm packages in my meteor application, for instance the 'knox' package for amazon s3 access.

On my local system I don't have any problems, because I have the 'knox'- npm package installed on my system. But on the server this is obviously not the case.

I have read different suggestions what I could do:

1)

Install the npm module into the /public folder of my application - unfortunately I don't know how to do that.

2)

I followed this tutorial:

NPM Deploy Tutorial

I created packages/knox/package.js packages/knox/knox.js and I am pretty sure I did everything as described in the tutorial but this is not even working locally

Upvotes: 0

Views: 275

Answers (2)

Andrew Mao
Andrew Mao

Reputation: 36940

Did you remember to add the knox package to the .meteor/packages file?

The link you shared is pre Meteor 0.6.5, which loaded all packages in packages/ automatically. Now, you need to specify them individually.

Upvotes: 0

Hubert OG
Hubert OG

Reputation: 19544

Use npm package from Atmosphere. See details on how to use it.

Upvotes: 1

Related Questions