Does someone know how to fix that? Trying to self host Mastodon. 

error /home/mastodon/live/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Directory: /home/mastodon/live/node_modules/node-sass
Building: /usr/bin/node /home/mastodon/live/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli '/usr/bin/node',
gyp verb cli '/home/mastodon/live/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using node-gyp@3.4.0
gyp info using node@12.22.9 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp ERR! stack TypeError: Cannot read property 'length' of undefined
gyp ERR! stack at parse (/home/mastodon/live/node_modules/semver/semver.js:239:15)
gyp ERR! stack at Function.valid (/home/mastodon/live/node_modules/semver/semver.js:255:11)
gyp ERR! stack at processRelease (/home/mastodon/live/node_modules/node-gyp/lib/process-release.js:16:25)
gyp ERR! stack at configure (/home/mastodon/live/node_modules/node-gyp/lib/configure.js:35:17)
gyp ERR! stack at Object.self.commands.<computed> [as configure] (/home/mastodon/live/node_modules/node-gyp/lib/node-gyp.js:66:37)
gyp ERR! stack at run (/home/mastodon/live/node_modules/node-gyp/bin/node-gyp.js:72:30)
gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:79:11)
gyp ERR! System Linux 5.4.0-88-generic
gyp ERR! command "/usr/bin/node" "/home/mastodon/live/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/mastodon/live/node_modules/node-sass
gyp ERR! node -v v12.22.9
gyp ERR! node-gyp -v v3.4.0
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! <>

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with!