bigbluebutton / docker

Docker files for BigBlueButton
GNU Lesser General Public License v3.0
359 stars 240 forks source link

"WARNING: version mismatch for node-sass; installed version is 6.0.1" breaks the building process #184

Closed elbdude01 closed 2 years ago

elbdude01 commented 2 years ago

Hi everyone,

on an fresh Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-162-generic x86_64) I get the following error(s) while building the docker image: ---snip---

`

bbb-html5-client@undefined preinstall /home/meteor/source npx npm-force-resolutions

npx: installed 6 in 2.728s

core-js@2.6.12 postinstall /home/meteor/source/node_modules/core-js node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

node-sass@6.0.1 install /home/meteor/source/node_modules/node-sass node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v6.0.1/linux-x64-83_binding.node Download complete Binary saved to /home/meteor/source/node_modules/node-sass/vendor/linux-x64-83/binding.node Caching binary to /home/meteor/.npm/_cacache/node-sass/6.0.1/linux-x64-83_binding.node

node-sass@6.0.1 postinstall /home/meteor/source/node_modules/node-sass node scripts/build.js

Binary found at /home/meteor/source/node_modules/node-sass/vendor/linux-x64-83/binding.node Testing binary Binary is fine

fibers@4.0.3 install /home/meteor/source/node_modules/fibers node build.js || nodejs build.js

make: Entering directory '/home/meteor/source/node_modules/fibers/build' CXX(target) Release/obj.target/fibers/src/fibers.o ../src/fibers.cc: In function 'void uni::SetAccessor(v8::Isolate, v8::Local, v8::Local, uni::FunctionType ()(v8::Local, const GetterCallbackInfo&), void ()(v8::Local, v8::Local, const SetterCallbackInfo&))': ../src/fibers.cc:355:59: warning: cast between incompatible function types from 'uni::FunctionType ()(v8::Local, const GetterCallbackInfo&)' {aka 'void ()(v8::Local, const v8::PropertyCallbackInfo&)'} to 'v8::AccessorNameGetterCallback' {aka 'void ()(v8::Local, const v8::PropertyCallbackInfo&)'} [-Wcast-function-type] 355 | object->SetAccessor(isolate->GetCurrentContext(), name, (AccessorNameGetterCallback)getter, (AccessorNameSetterCallback)setter).ToChecked(); | ^~~~~~~~~~ ../src/fibers.cc:355:95: warning: cast between incompatible function types from 'void ()(v8::Local, v8::Local, const SetterCallbackInfo&)' {aka 'void ()(v8::Local, v8::Local, const v8::PropertyCallbackInfo&)'} to 'v8::AccessorNameSetterCallback' {aka 'void ()(v8::Local, v8::Local, const v8::PropertyCallbackInfo&)'} [-Wcast-function-type] 355 | object->SetAccessor(isolate->GetCurrentContext(), name, (AccessorNameGetterCallback)getter, (AccessorNameSetterCallback)setter).ToChecked(); | ^~~~~~~~~~ In file included from ../src/coroutine.h:1, from ../src/fibers.cc:1: ../src/fibers.cc: At global scope: /home/meteor/.meteor/packages/meteor-tool/2.5.0/mt-os.linux.x86_64/dev_bundle/include/node/node.h:787:7: warning: cast between incompatible function types from 'void ()(v8::Local)' to 'node::addon_register_func' {aka 'void ()(v8::Local, v8::Local, void)'} [-Wcast-function-type] 787 | (node::addon_register_func) (regfunc), \ | ^~~~~~~~~ /home/meteor/.meteor/packages/meteor-tool/2.5.0/mt-os.linux.x86_64/dev_bundle/include/node/node.h:821:3: note: in expansion of macro 'NODE_MODULE_X' 821 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) | ^~~~~ ../src/fibers.cc:930:1: note: in expansion of macro 'NODE_MODULE' 930 | NODE_MODULE(fibers, init) | ^~~ CXX(target) Release/obj.target/fibers/src/coroutine.o CC(target) Release/obj.target/fibers/src/libcoro/coro.o SOLINK_MODULE(target) Release/obj.target/fibers.node COPY Release/fibers.node make: Leaving directory '/home/meteor/source/node_modules/fibers/build' Installed in /home/meteor/source/node_modules/fibers/bin/linux-x64-83-glibc/fibers.node added 403 packages in 32.339s WARNING: version mismatch for node-sass; installed version is 6.0.1, but version >=3.x <=4.x is required by nathantreid:css-modules) WARNING: version mismatch for node-sass; installed version is 6.0.1, but version >=3.x <=4.x is required by nathantreid:css-modules) Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db

Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating WARNING: version mismatch for node-sass; installed version is 6.0.1, but version >=3.x <=4.x is required by nathantreid:css-modules) Killed The command '/bin/sh -c cd ~ && svn checkout https://github.com/bigbluebutton/bigbluebutton/tags/$TAG/bigbluebutton-html5 && mv ~/bigbluebutton-html5 ~/source && cd ~/source && ~/.meteor/meteor npm ci --production && METEOR_DISABLE_OPTIMISTIC_CACHING=1 ~/.meteor/meteor build --architecture os.linux.x86_64 --directory ~/app && rm -rf ~/source' returned a non-zero code: 137 ERROR: Service 'html5-frontend-2' failed to build : Build failed `

Any suggestions?

Regards, Tom

elbdude01 commented 2 years ago

As mentioned in #187 this may be a resources problem. In fact my setup was a VM with only 2GB RAM and 20GB HDD. So ... my fault. Thank's anyway for this project!

Regards, Tom