Drone

Unable to build with gulp-sass

Trying to set up a new pipeline that uses node but it always fails once it gets to the stage where it it tries to compile the sass.

+ cd simulation
2 + npm i -g gulp
3
4 /usr/local/bin/gulp -> /usr/local/lib/node_modules/gulp/bin/gulp.js
5 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/gulp/node_modules/fsevents):
6 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
7
8 + gulp@4.0.2
9 added 316 packages from 217 contributors in 14.247s
10
11 + npm run deploy
12
13 > foundation-emails-template@1.0.0 deploy /drone/src/simulation
14 > npm run build && node ../deploy.js
15
16
17
18 > foundation-emails-template@1.0.0 build /drone/src/simulation
19 > gulp --production
20
21
22 [03:08:37] Requiring external module babel-register
23 [03:08:41] Using gulpfile /drone/src/simulation/gulpfile.babel.js
24 [03:08:41] Starting 'default'...
25 [03:08:41] Starting 'build'...
26
27 [03:08:41] Starting 'clean'...
28 [03:08:41] Finished 'clean' after 6.43 ms
29 [03:08:41] Starting 'pages'...
30
31 [03:08:42] Finished 'pages' after 1 s
32 [03:08:42] Starting 'sass'...
33 [03:08:42] 'sass' errored after 356 ms
34 [03:08:42] Error: /drone/src/simulation/node_modules/gulp-sass/node_modules/node-sass/vendor/linux-x64-64/binding.node: failed to map segment from shared object
35 at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)
36 at Module.load (internal/modules/cjs/loader.js:653:32)
37 at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
38 at Function.Module._load (internal/modules/cjs/loader.js:585:3)
39 at Module.require (internal/modules/cjs/loader.js:692:17)
40 at require (internal/modules/cjs/helpers.js:25:18)
41 at module.exports (/drone/src/simulation/node_modules/gulp-sass/node_modules/node-sass/lib/binding.js:19:10)
42 at Object.<anonymous> (/drone/src/simulation/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:14:35)
43 at Module._compile (internal/modules/cjs/loader.js:778:30)
44 at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
45
46 [03:08:42] 'build' errored after 1.39 s
47 [03:08:42] 'default' errored after 1.4 s
48
49 npm ERR! code ELIFECYCLE
50 npm ERR! errno 1
51 npm ERR! foundation-emails-template@1.0.0 build: `gulp --production`
52
53 npm ERR! Exit status 1
54 npm ERR!
55 npm ERR! Failed at the foundation-emails-template@1.0.0 build script.
56 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
57
58
59 npm ERR! A complete log of this run can be found in:
60 npm ERR! /root/.npm/_logs/2020-01-30T03_08_42_719Z-debug.log
61
62 npm ERR! code ELIFECYCLE
63 npm ERR! errno 1
64 npm ERR! foundation-emails-template@1.0.0 deploy: `npm run build && node ../deploy.js`
65 npm ERR! Exit status 1
66 npm ERR!
67 npm ERR! Failed at the foundation-emails-template@1.0.0 deploy script.
68 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
69
70
71 npm ERR! A complete log of this run can be found in:
72 npm ERR! /root/.npm/_logs/2020-01-30T03_08_42_772Z-debug.log

I think I have pinned it down to being an issue with the attached volume having a noexec setting?

The npm run deploy script is basically gulp --production

Anyone have any suggestions on how to fix this?