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
Arguments:
Directory: /home/mastodon/live/node_modules/node-sass
Output:
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 [email protected]
gyp info using [email protected] | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp ERR! UNCAUGHT EXCEPTION
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! <github.com/nodejs/node-gyp/iss>

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

@pukima looks like that node is giving you some sass

@NoOneSpecial I tried some things from the internet but none helped

@pukima I was just making a bad joke because it says "node-sass" at the top. I looked over it, but unfortunately, I got nothing. I do think it's funny that at some point it just says "this is an error with node-gyp"

Sign in to participate in the conversation
Bitcoin Mastodon

Bitcoin Maston Instance