Npm package using wrong OS on Galaxy

I’m using a package that has a dependency an npm package that has a dependency on phantomjs.

"dependencies": {
    "phantomjs-prebuilt": "^2.1.2"

When I deploy to Galaxy it uses the wrong phantomjs-prebuilt. It uses the mac version because I’m working on a mac. I had it working when I was using docker by doing this.

WORKDIR /opt/app/programs/server/npm/mb/node_modules/svgexport
RUN npm rebuild

Mb is my package. The dockerfile was based on Ubuntu so it rebuilt mb’s node modules for linux. When I deploy to galaxy though it doesn’t rebuild it and I get an error.

1 Like