OpenNebula / one

The open source Cloud & Edge Computing Platform bringing real freedom to your Enterprise Cloud 🚀
http://opennebula.io
Apache License 2.0
1.24k stars 479 forks source link

opennebula-5.12.0.1: require at least node-sass@4.12.0 #5097

Closed samuelbernardo closed 2 years ago

samuelbernardo commented 4 years ago

Description Compilation fails because current code is loading a previous version of node-sass@3.13.1.

To Reproduce Follow the steps defined in the following gentoo ebuild: https://github.com/samuelbernardo/ssnb-overlay/blob/master/app-emulation/opennebula/opennebula-5.12.0.1.ebuild

Expected behavior Opennebula compilation with success.

Details

Additional context

References: https://github.com/sass/libsass/issues/2883 https://github.com/sass/node-sass

node-sass@3.13.1 postinstall /var/tmp/portage/app-emulation/opennebula-5.12.0.1/work/one-release-5.12.0.1/src/sunstone/public/node_modules/node-sass

../src/create_string.cpp:17:37: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>&)’
   17 |   v8::String::Utf8Value string(value);
      |                                     ^
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/var/tmp/portage/app-emulation/opennebula-5.12.0.1/work/one-release-5.12.0.1/src/sunstone/public/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 5.4.60-gentoox99
gyp ERR! command "/usr/bin/node" "/var/tmp/portage/app-emulation/opennebula-5.12.0.1/work/one-release-5.12.0.1/src/sunstone/public/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /var/tmp/portage/app-emulation/opennebula-5.12.0.1/work/one-release-5.12.0.1/src/sunstone/public/node_modules/node-sass
gyp ERR! node -v v14.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@3.13.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@3.13.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /var/tmp/portage/app-emulation/opennebula-5.12.0.1/homedir/.npm/_logs/2020-09-20T11_01_17_508Z-debug.log
Error generating minifying Sunstone files

Progress Status

tinova commented 2 years ago

please reopen if reproducible on 6.4