mantra-sample-blog-app icon indicating copy to clipboard operation
mantra-sample-blog-app copied to clipboard

Cannot Deploy to Galaxy from Mac (Due to binary NPM modules in dev dependencies)

Open tomitrescak opened this issue 8 years ago • 6 comments

Blog app uses some binary modules which prohibit it from being deployed to Linux servers from non Linux computers such as my Mac. For example a binary module is:

> [email protected] install /Users/tomi/Documents/Programming/Github/mantra-sample-blog-app/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

[fsevents] Success: "/Users/tomi/Documents/Programming/Github/mantra-sample-blog-app/node_modules/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node" is installed via remote
[email protected] /Users/tomi/Documents/Programming/Github/mantra-sample-blog-app

The only way to develop to Galaxy is to delete the dev-dependency modules and use only the application one as those do not use binary modules. What do you reckon is the best way to deal with that?

One idea would be to use Docker and deploy to Galaxy from docker. Another would be to keep two versions of node modules and during deployment substitute them.

Both of these solutions seem to me quite heavy ... do you have any better idea?

tomitrescak avatar Apr 05 '16 12:04 tomitrescak

It seems that the culprit is @kadira/storybook which installs these modules. Maybe it should not be a part of the application bu run from a parent directory?

tomitrescak avatar Apr 05 '16 12:04 tomitrescak

@arunoda does this even have a solution? It's the fsevents component that is acting up:( exon in Webpack handled this just not sure how.

tomitrescak avatar Apr 14 '16 14:04 tomitrescak

@tomitrescak Try using the latest Meteor 1.3.2. It seems this issue is fixed in that.

arunoda avatar Apr 19 '16 05:04 arunoda

Yea, when I heard about the binary modules in 1.3.2, made my hear sing;) I'll test it soon and post back

tomitrescak avatar Apr 19 '16 05:04 tomitrescak

No that's not the case. This issue is fixed in the latest Meteor version. It's not related to binary NPM modules.

But, Meteor bundles all the NPM modules here. So, it's better move all devDependecies to the top level.

arunoda avatar Apr 19 '16 05:04 arunoda

@tomitrescak here's the related issue: https://github.com/meteor/meteor/issues/6836

arunoda avatar Apr 19 '16 05:04 arunoda