gitlab ci issue with .node file extension
Hello gitlab team. My problem looks like bug so i write it here. This problem happens on gitlab CI I run i9n tests and i've implement some logic which resize images. I use sharp for it (https://github.com/lovell/sharp) And when i'm importing this lib to my project my CI is crashing with weird error
● process.exit called with "1"
178 node_1 |
179 node_1 | at Object.<anonymous> (node_modules/sharp/lib/constructor.js:29:11)
180 node_1 | at Object.<anonymous> (node_modules/sharp/lib/index.js:3:15)
181 node_1 | npm ERR! code ELIFECYCLE
182 node_1 | npm ERR! errno 1
This library try to require file with .node extension require('../build/Release/sharp.node');
And i guess it main reason why my CI crashes due to when i remove import of this library all works fine...
Part of CI config where it crashed .gitlab-ci.yml
i9n_tests:
image: tmaier/docker-compose:latest
services:
- docker:dind
stage: i9n
script:
- ./run-i9n.sh
Locally all works fine
Edited by Bogdan Moskin