Operation System: Linux (Manjaro + XFCE)
Beaker version: Version: 0.8.0-prerelease.5 Electron: 2.0.0-beta.5 - Chromium: 61.0.3163.100 - Node: 8.9.3
When I visit some pages, in a certain context I am not able to precise, Beaker crashes and outputs the following message:
This window might be busy and is not responding.
Do you want to terminate the application?
The log file is here and seams to have Too many failed connection attempts alerts at its end.
The following URLs sometimes make Beaker crash on my system:
dat://bcc953c1dbc546f0e982080d3728b860178aafd01f928ecd19fec243a2502a41/
dat://23115ee1936b2e4d9848d2ebf7fa35e3112a5def29bc7e6e54a7086b81ac207c/
dat://31f852450f22d5b485eac4eb892df0cd148aa7b997894d2f82a53a231ff02faa/
Thanks for reporting. Something is definitely up with Linux builds.
@pfrazee for #964 I tried to build the newest version of beaker of the master branch (e532230bb1b2d195b96f7cf9fd582220cdeb3902) I ran into an error while doing npm install or npm burnthemall
npm log is here: https://pastebin.com/UrGHLd9u
@faebser any reason your shell environment would have trouble running cd app && npm install ?
@pfrazee no, I would not know why. It seems to be a compile error for the bloom filters.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: `npm install bloom-filter-cpp && npm install hashset-cpp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
> [email protected] install /home/faebser/opt/beaker/app/node_modules/ad-block/node_modules/bloom-filter-cpp
> node-gyp rebuild
make: Entering directory '/home/faebser/opt/beaker/app/node_modules/ad-block/node_modules/bloom-filter-cpp/build'
CXX(target) Release/obj.target/bloom-filter-cpp/addon.o
In file included from ../addon.cpp:6:
/home/faebser/.node-gyp/10.1.0/include/node/node.h:513:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/home/faebser/.node-gyp/10.1.0/include/node/node.h:547:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../addon.cpp:18:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(addon, InitAll)
^~~~~~~~~~~
In file included from /home/faebser/.node-gyp/10.1.0/include/node/node.h:63,
from ../addon.cpp:6:
/home/faebser/.node-gyp/10.1.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/faebser/.node-gyp/10.1.0/include/node/node_object_wrap.h:85:78: required from here
/home/faebser/.node-gyp/10.1.0/include/node/v8.h:9227:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CXX(target) Release/obj.target/bloom-filter-cpp/BloomFilterWrap.o
../BloomFilterWrap.cpp: In static member function ‘static void BloomFilterWrap::BloomFilterWrap::New(const v8::FunctionCallbackInfo<v8::Value>&)’:
../BloomFilterWrap.cpp:62:59: error: no matching function for call to ‘v8::Function::NewInstance(const int&, v8::Local<v8::Value> [1])’
args.GetReturnValue().Set(cons->NewInstance(argc, argv));
^
In file included from /home/faebser/.node-gyp/10.1.0/include/node/node.h:63,
from ../BloomFilterWrap.h:9,
from ../BloomFilterWrap.cpp:6:
/home/faebser/.node-gyp/10.1.0/include/node/v8.h:3848:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const’
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^~~~~~~~~~~
/home/faebser/.node-gyp/10.1.0/include/node/v8.h:3848:44: note: candidate expects 3 arguments, 2 provided
/home/faebser/.node-gyp/10.1.0/include/node/v8.h:3851:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^~~~~~~~~~~
/home/faebser/.node-gyp/10.1.0/include/node/v8.h:3851:44: note: candidate expects 1 argument, 2 provided
../BloomFilterWrap.cpp: In static member function ‘static void BloomFilterWrap::BloomFilterWrap::Add(const v8::FunctionCallbackInfo<v8::Value>&)’:
../BloomFilterWrap.cpp:67:44: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
String::Utf8Value str(args[0]->ToString());
^
In file included from /home/faebser/.node-gyp/10.1.0/include/node/v8.h:26,
from /home/faebser/.node-gyp/10.1.0/include/node/node.h:63,
from ../BloomFilterWrap.h:9,
from ../BloomFilterWrap.cpp:6:
/home/faebser/.node-gyp/10.1.0/include/node/v8.h:2822:28: note: declared here
explicit Utf8Value(Local<v8::Value> obj));
^~~~~~~~~
/home/faebser/.node-gyp/10.1.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../BloomFilterWrap.cpp: In static member function ‘static void BloomFilterWrap::BloomFilterWrap::Exists(const v8::FunctionCallbackInfo<v8::Value>&)’:
../BloomFilterWrap.cpp:76:44: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
String::Utf8Value str(args[0]->ToString());
^
In file included from /home/faebser/.node-gyp/10.1.0/include/node/v8.h:26,
from /home/faebser/.node-gyp/10.1.0/include/node/node.h:63,
from ../BloomFilterWrap.h:9,
from ../BloomFilterWrap.cpp:6:
/home/faebser/.node-gyp/10.1.0/include/node/v8.h:2822:28: note: declared here
explicit Utf8Value(Local<v8::Value> obj));
^~~~~~~~~
/home/faebser/.node-gyp/10.1.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from /home/faebser/.node-gyp/10.1.0/include/node/node.h:63,
from ../BloomFilterWrap.h:9,
from ../BloomFilterWrap.cpp:6:
/home/faebser/.node-gyp/10.1.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/faebser/.node-gyp/10.1.0/include/node/node_object_wrap.h:85:78: required from here
/home/faebser/.node-gyp/10.1.0/include/node/v8.h:9227:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [bloom-filter-cpp.target.mk:100: Release/obj.target/bloom-filter-cpp/BloomFilterWrap.o] Error 1
make: Leaving directory '/home/faebser/opt/beaker/app/node_modules/ad-block/node_modules/bloom-filter-cpp/build'
Ah, right, what version of node do you have on your computer?
Does this help?
node -v
v10.1.0
npm -v
6.0.1
It definitely seems like a compilation failure caused by a node version mismatch....
...and yep https://github.com/bbondy/bloom-filter-cpp/issues/4
Are you planning to update the dependency? It looks like there is a pull request open
I pinged upstream
On Wed, May 23, 2018 at 8:21 AM Fabian Frei notifications@github.com
wrote:
Are you planning to update the dependency? It looks like there is a pull
request open—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/beakerbrowser/beaker/issues/992#issuecomment-391344029,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABNhU8X7qrMb6PSZhuUfiKPjoIOC0A4fks5t1WI_gaJpZM4UDBTb
.
@pfrazee any news on this issue?
@faebser yes, try compiling again with a totally fresh node modules in the /app dir (npm run burnthemall).
You should have bloom-filter-cpp at version 1.1.8 or higher in the /app/node_modules and that shouldnt have any issue compiling now.
@pfrazee thanks, the bloom-filter issues seems to be gone but i'm still unable to run npm run burnthemall. It seems that the sqllite3 package forgot to add node-pre-gyp to it's dependencies.
> [email protected] install /home/faebser/opt/beaker/app/node_modules/@beaker/core/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
sh: node-pre-gyp: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install 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! /home/faebser/.npm/_logs/2018-07-02T13_37_31_962Z-debug.log
npm run build
> beakerbrowser@ build /home/faebser/opt/beaker
> gulp build
[15:37:32] Using gulpfile ~/opt/beaker/gulpfile.js
[15:37:32] Starting 'burnthemall-maybe'...
[15:37:32] Finished 'burnthemall-maybe' after 598 μs
[15:37:32] Starting 'bundle'...
[15:37:32] Starting 'less'...
[15:37:32] Finished 'less' after 13 ms
'@beaker/core/webview' is imported by app/webview-preload.js, but could not be resolved – treating it as an external dependency
'@beaker/core/lib/error-page' is imported by app/shell-window/pages.js, but could not be resolved – treating it as an external dependency
'TimeoutError' is imported from external module 'beaker-error-constants' but never used
'TimeoutError' is imported from external module 'beaker-error-constants' but never used
'@beaker/core/lib/const' is imported by app/builtin-pages/com/files-browser/files-flat-view.js, but could not be resolved – treating it as an external dependency
'TimeoutError' is imported from external module 'beaker-error-constants' but never used
'@beaker/core/lib/strings' is imported by app/background-process/ui/permissions.js, but could not be resolved – treating it as an external dependency
'@beaker/core/lib/const' is imported by app/background-process/browser.js, but could not be resolved – treating it as an external dependency
'@beaker/core/lib/strings' is imported by app/builtin-pages/views/library-view.js, but could not be resolved – treating it as an external dependency
'@beaker/core/lib/const' is imported by app/background-process/analytics.js, but could not be resolved – treating it as an external dependency
'@beaker/core/lib/const' is imported by app/builtin-pages/views/library-view.js, but could not be resolved – treating it as an external dependency
'IS_GIT_URL_REGEX' is imported from external module '@beaker/core/lib/const' but never used
'@beaker/core/lib/error-page' is imported by app/background-process/protocols/beaker.js, but could not be resolved – treating it as an external dependency
[15:37:36] Finished 'bundle' after 4.11 s
[15:37:36] Starting 'build'...
[15:37:36] Finished 'build' after 53 μs
Huh that's new. I'm not able to find any similar issues reported for sqlite3 or node-pre-gyp. Was there any error in the log RE installing node-pre-gyp?
sorry, i looked wrong. There are two error problems now. The bloomfilter is still unable to install but now also the other step with sqlit3 fails.
I'm running node v10.5.0
> [email protected] install /home/faebser/opt/beaker/app/node_modules/ad-block/node_modules/hashset-cpp
> node-gyp rebuild
make: Entering directory '/home/faebser/opt/beaker/app/node_modules/ad-block/node_modules/hashset-cpp/build'
CXX(target) Release/obj.target/hashset-cpp/addon.o
In file included from ../addon.cpp:6:
/home/faebser/.node-gyp/10.5.0/include/node/node.h:539:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/home/faebser/.node-gyp/10.5.0/include/node/node.h:573:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../addon.cpp:18:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(addon, InitAll)
^~~~~~~~~~~
In file included from /home/faebser/.node-gyp/10.5.0/include/node/node.h:63,
from ../addon.cpp:6:
/home/faebser/.node-gyp/10.5.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/faebser/.node-gyp/10.5.0/include/node/node_object_wrap.h:85:78: required from here
/home/faebser/.node-gyp/10.5.0/include/node/v8.h:9360:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CXX(target) Release/obj.target/hashset-cpp/HashSetWrap.o
../HashSetWrap.cpp: In static member function ‘static void HashSetWrap::HashSetWrap::New(const v8::FunctionCallbackInfo<v8::Value>&)’:
../HashSetWrap.cpp:61:59: error: no matching function for call to ‘v8::Function::NewInstance(const int&, v8::Local<v8::Value> [1])’
args.GetReturnValue().Set(cons->NewInstance(argc, argv));
^
In file included from /home/faebser/.node-gyp/10.5.0/include/node/node.h:63,
from ../HashSetWrap.h:9,
from ../HashSetWrap.cpp:6:
/home/faebser/.node-gyp/10.5.0/include/node/v8.h:3911:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const’
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^~~~~~~~~~~
/home/faebser/.node-gyp/10.5.0/include/node/v8.h:3911:44: note: candidate expects 3 arguments, 2 provided
/home/faebser/.node-gyp/10.5.0/include/node/v8.h:3914:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^~~~~~~~~~~
/home/faebser/.node-gyp/10.5.0/include/node/v8.h:3914:44: note: candidate expects 1 argument, 2 provided
../HashSetWrap.cpp: In static member function ‘static void HashSetWrap::HashSetWrap::Add(const v8::FunctionCallbackInfo<v8::Value>&)’:
../HashSetWrap.cpp:66:44: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
String::Utf8Value str(args[0]->ToString());
^
In file included from /home/faebser/.node-gyp/10.5.0/include/node/v8.h:26,
from /home/faebser/.node-gyp/10.5.0/include/node/node.h:63,
from ../HashSetWrap.h:9,
from ../HashSetWrap.cpp:6:
/home/faebser/.node-gyp/10.5.0/include/node/v8.h:2852:28: note: declared here
explicit Utf8Value(Local<v8::Value> obj));
^~~~~~~~~
/home/faebser/.node-gyp/10.5.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../HashSetWrap.cpp: In static member function ‘static void HashSetWrap::HashSetWrap::Exists(const v8::FunctionCallbackInfo<v8::Value>&)’:
../HashSetWrap.cpp:75:44: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
String::Utf8Value str(args[0]->ToString());
^
In file included from /home/faebser/.node-gyp/10.5.0/include/node/v8.h:26,
from /home/faebser/.node-gyp/10.5.0/include/node/node.h:63,
from ../HashSetWrap.h:9,
from ../HashSetWrap.cpp:6:
/home/faebser/.node-gyp/10.5.0/include/node/v8.h:2852:28: note: declared here
explicit Utf8Value(Local<v8::Value> obj));
^~~~~~~~~
/home/faebser/.node-gyp/10.5.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from /home/faebser/.node-gyp/10.5.0/include/node/node.h:63,
from ../HashSetWrap.h:9,
from ../HashSetWrap.cpp:6:
/home/faebser/.node-gyp/10.5.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/faebser/.node-gyp/10.5.0/include/node/node_object_wrap.h:85:78: required from here
/home/faebser/.node-gyp/10.5.0/include/node/v8.h:9360:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [hashset-cpp.target.mk:105: Release/obj.target/hashset-cpp/HashSetWrap.o] Error 1
make: Leaving directory '/home/faebser/opt/beaker/app/node_modules/ad-block/node_modules/hashset-cpp/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Linux 4.17.2-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/faebser/opt/beaker/app/node_modules/ad-block/node_modules/hashset-cpp
gyp ERR! node -v v10.5.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install 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! /home/faebser/.npm/_logs/2018-07-04T21_34_41_822Z-debug.log
npm WARN [email protected] requires a peer of hyperdrive@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: `npm install bloom-filter-cpp && npm install hashset-cpp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall 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! /home/faebser/.npm/_logs/2018-07-04T21_34_43_095Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! beakerbrowser@ postinstall: `cd app && npm install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the beakerbrowser@ 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! /home/faebser/.npm/_logs/2018-07-04T21_34_43_266Z-debug.log
npm run rebuild
> beakerbrowser@ rebuild /home/faebser/opt/beaker
> gulp rebuild
[23:34:44] Using gulpfile ~/opt/beaker/gulpfile.js
[23:34:44] Starting 'rebuild'...
/home/faebser/opt/beaker/app
npm rebuild --runtime=electron --target=2.0.2 --disturl=https://atom.io/download/atom-shell --build-from-source
[23:34:44] Finished 'rebuild' after 3.65 ms
> [email protected] postinstall /home/faebser/opt/beaker/app/node_modules/@beaker/core/node_modules/fs-jetpack/node_modules/spawn-sync
> node postinstall
> [email protected] postinstall /home/faebser/opt/beaker/app/node_modules/@beaker/core/node_modules/fs-jetpack/node_modules/spawn-sync
> node postinstall
> [email protected] postinstall /home/faebser/opt/beaker/app/node_modules/@beaker/core/node_modules/fs-jetpack/node_modules/lint-staged
> echo "🚫💩 lint-staged installed!
Do not forget to configure it. See https://github.com/okonet/lint-staged/blob/master/README.md" && exit 0
🚫💩 lint-staged installed!
Do not forget to configure it. See https://github.com/okonet/lint-staged/blob/master/README.md
> [email protected] install /home/faebser/opt/beaker/app/node_modules/@beaker/core/node_modules/fs-jetpack/node_modules/pre-commit
> node install.js
> [email protected] install /home/faebser/opt/beaker/app/node_modules/@beaker/core/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
sh: node-pre-gyp: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install 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! /home/faebser/.npm/_logs/2018-07-04T21_34_46_925Z-debug.log
npm run build
> beakerbrowser@ build /home/faebser/opt/beaker
> gulp build
[23:34:47] Using gulpfile ~/opt/beaker/gulpfile.js
[23:34:47] Starting 'burnthemall-maybe'...
[23:34:47] Finished 'burnthemall-maybe' after 1.13 ms
[23:34:47] Starting 'bundle'...
[23:34:47] Starting 'less'...
[23:34:47] Finished 'less' after 15 ms
'@beaker/core/webview' is imported by app/webview-preload.js, but could not be resolved – treating it as an external dependency
'@beaker/core/lib/error-page' is imported by app/shell-window/pages.js, but could not be resolved – treating it as an external dependency
'TimeoutError' is imported from external module 'beaker-error-constants' but never used
'TimeoutError' is imported from external module 'beaker-error-constants' but never used
'@beaker/core/lib/const' is imported by app/builtin-pages/com/files-browser/files-flat-view.js, but could not be resolved – treating it as an external dependency
'TimeoutError' is imported from external module 'beaker-error-constants' but never used
'@beaker/core/lib/strings' is imported by app/background-process/ui/permissions.js, but could not be resolved – treating it as an external dependency
'@beaker/core/lib/const' is imported by app/background-process/browser.js, but could not be resolved – treating it as an external dependency
'@beaker/core/lib/strings' is imported by app/builtin-pages/views/library-view.js, but could not be resolved – treating it as an external dependency
'@beaker/core/lib/const' is imported by app/background-process/analytics.js, but could not be resolved – treating it as an external dependency
'@beaker/core/lib/const' is imported by app/builtin-pages/views/library-view.js, but could not be resolved – treating it as an external dependency
'IS_GIT_URL_REGEX' is imported from external module '@beaker/core/lib/const' but never used
'@beaker/core/lib/error-page' is imported by app/background-process/protocols/beaker.js, but could not be resolved – treating it as an external dependency
[23:34:53] Finished 'bundle' after 5.32 s
[23:34:53] Starting 'build'...
[23:34:53] Finished 'build' after 42 μs
noo you didn't look wrong. The bloomfilter was recently broken in a new way. It's not possible to control which version it tries to install due to a post-install script so I'm disabling it in Beaker until they get it fixed.
The missing node-pre-gyp command is odd. It might suggest some oddity with npm or your npm config. Try this:
cd $BEAKER_FOLDER
cd app
npm i --save [email protected]
cd ..
npm run burnthemall
This will ensure that node-pre-gyp is installed in the app dir.
I pulled the newest version and I installed node-pre-gyp in the app folder:
npm i --save [email protected]
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of hyperdrive@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ [email protected]
updated 1 package in 5.894s
but i'm still unable to build beaker:
> beakerbrowser@ burnthemall /home/faebser/opt/beaker
> node ./tasks/burnthemall.js
rm -rf /home/faebser/opt/beaker/node_modules
rm -rf /home/faebser/opt/beaker/app/node_modules
rm /home/faebser/opt/beaker/package-lock.json
rm /home/faebser/opt/beaker/app/package-lock.json
npm install
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
> [email protected] install /home/faebser/opt/beaker/node_modules/bloom-filter-cpp
> node-gyp rebuild
make: Entering directory '/home/faebser/opt/beaker/node_modules/bloom-filter-cpp/build'
CXX(target) Release/obj.target/bloom-filter-cpp/addon.o
In file included from ../addon.cpp:6:
/home/faebser/.node-gyp/10.6.0/include/node/node.h:537:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/home/faebser/.node-gyp/10.6.0/include/node/node.h:571:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../addon.cpp:18:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(addon, InitAll)
^~~~~~~~~~~
In file included from /home/faebser/.node-gyp/10.6.0/include/node/node.h:63,
from ../addon.cpp:6:
/home/faebser/.node-gyp/10.6.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/faebser/.node-gyp/10.6.0/include/node/node_object_wrap.h:85:78: required from here
/home/faebser/.node-gyp/10.6.0/include/node/v8.h:9360:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CXX(target) Release/obj.target/bloom-filter-cpp/BloomFilterWrap.o
In file included from /home/faebser/.node-gyp/10.6.0/include/node/node.h:63,
from ../BloomFilterWrap.h:9,
from ../BloomFilterWrap.cpp:6:
/home/faebser/.node-gyp/10.6.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/faebser/.node-gyp/10.6.0/include/node/node_object_wrap.h:85:78: required from here
/home/faebser/.node-gyp/10.6.0/include/node/v8.h:9360:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CXX(target) Release/obj.target/bloom-filter-cpp/BloomFilter.o
CXX(target) Release/obj.target/bloom-filter-cpp/hashFn.o
SOLINK_MODULE(target) Release/obj.target/bloom-filter-cpp.node
COPY Release/bloom-filter-cpp.node
make: Leaving directory '/home/faebser/opt/beaker/node_modules/bloom-filter-cpp/build'
> [email protected] install /home/faebser/opt/beaker/node_modules/fs-jetpack/node_modules/pre-commit
> node install.js
> [email protected] postinstall /home/faebser/opt/beaker/node_modules/fs-jetpack/node_modules/spawn-sync
> node postinstall
> [email protected] postinstall /home/faebser/opt/beaker/node_modules/electron
> node install.js
> [email protected] postinstall /home/faebser/opt/beaker/node_modules/fs-jetpack/node_modules/lint-staged
> echo "🚫💩 lint-staged installed!
Do not forget to configure it. See https://github.com/okonet/lint-staged/blob/master/README.md" && exit 0
🚫💩 lint-staged installed!
Do not forget to configure it. See https://github.com/okonet/lint-staged/blob/master/README.md
> beakerbrowser@ postinstall /home/faebser/opt/beaker
> cd app && npm install
npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support
> [email protected] preinstall /home/faebser/opt/beaker/app/node_modules/ad-block
> npm install bloom-filter-cpp && npm install hashset-cpp
> [email protected] install /home/faebser/opt/beaker/app/node_modules/ad-block/node_modules/bloom-filter-cpp
> node-gyp rebuild
make: Entering directory '/home/faebser/opt/beaker/app/node_modules/ad-block/node_modules/bloom-filter-cpp/build'
CXX(target) Release/obj.target/bloom-filter-cpp/addon.o
In file included from ../addon.cpp:6:
/home/faebser/.node-gyp/10.6.0/include/node/node.h:537:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/home/faebser/.node-gyp/10.6.0/include/node/node.h:571:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../addon.cpp:18:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(addon, InitAll)
^~~~~~~~~~~
In file included from /home/faebser/.node-gyp/10.6.0/include/node/node.h:63,
from ../addon.cpp:6:
/home/faebser/.node-gyp/10.6.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/faebser/.node-gyp/10.6.0/include/node/node_object_wrap.h:85:78: required from here
/home/faebser/.node-gyp/10.6.0/include/node/v8.h:9360:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CXX(target) Release/obj.target/bloom-filter-cpp/BloomFilterWrap.o
In file included from /home/faebser/.node-gyp/10.6.0/include/node/node.h:63,
from ../BloomFilterWrap.h:9,
from ../BloomFilterWrap.cpp:6:
/home/faebser/.node-gyp/10.6.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/faebser/.node-gyp/10.6.0/include/node/node_object_wrap.h:85:78: required from here
/home/faebser/.node-gyp/10.6.0/include/node/v8.h:9360:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CXX(target) Release/obj.target/bloom-filter-cpp/BloomFilter.o
CXX(target) Release/obj.target/bloom-filter-cpp/hashFn.o
SOLINK_MODULE(target) Release/obj.target/bloom-filter-cpp.node
COPY Release/bloom-filter-cpp.node
make: Leaving directory '/home/faebser/opt/beaker/app/node_modules/ad-block/node_modules/bloom-filter-cpp/build'
npm notice created a lockfile as package-lock.json. You should commit this file.
+ [email protected]
added 1 package from 1 contributor and audited 1 package in 2.162s
found 0 vulnerabilities
> [email protected] install /home/faebser/opt/beaker/app/node_modules/ad-block/node_modules/hashset-cpp
> node-gyp rebuild
make: Entering directory '/home/faebser/opt/beaker/app/node_modules/ad-block/node_modules/hashset-cpp/build'
CXX(target) Release/obj.target/hashset-cpp/addon.o
In file included from ../addon.cpp:6:
/home/faebser/.node-gyp/10.6.0/include/node/node.h:537:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/home/faebser/.node-gyp/10.6.0/include/node/node.h:571:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../addon.cpp:18:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(addon, InitAll)
^~~~~~~~~~~
In file included from /home/faebser/.node-gyp/10.6.0/include/node/node.h:63,
from ../addon.cpp:6:
/home/faebser/.node-gyp/10.6.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/faebser/.node-gyp/10.6.0/include/node/node_object_wrap.h:85:78: required from here
/home/faebser/.node-gyp/10.6.0/include/node/v8.h:9360:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CXX(target) Release/obj.target/hashset-cpp/HashSetWrap.o
../HashSetWrap.cpp: In static member function ‘static void HashSetWrap::HashSetWrap::New(const v8::FunctionCallbackInfo<v8::Value>&)’:
../HashSetWrap.cpp:61:59: error: no matching function for call to ‘v8::Function::NewInstance(const int&, v8::Local<v8::Value> [1])’
args.GetReturnValue().Set(cons->NewInstance(argc, argv));
^
In file included from /home/faebser/.node-gyp/10.6.0/include/node/node.h:63,
from ../HashSetWrap.h:9,
from ../HashSetWrap.cpp:6:
/home/faebser/.node-gyp/10.6.0/include/node/v8.h:3911:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const’
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^~~~~~~~~~~
/home/faebser/.node-gyp/10.6.0/include/node/v8.h:3911:44: note: candidate expects 3 arguments, 2 provided
/home/faebser/.node-gyp/10.6.0/include/node/v8.h:3914:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^~~~~~~~~~~
/home/faebser/.node-gyp/10.6.0/include/node/v8.h:3914:44: note: candidate expects 1 argument, 2 provided
../HashSetWrap.cpp: In static member function ‘static void HashSetWrap::HashSetWrap::Add(const v8::FunctionCallbackInfo<v8::Value>&)’:
../HashSetWrap.cpp:66:44: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
String::Utf8Value str(args[0]->ToString());
^
In file included from /home/faebser/.node-gyp/10.6.0/include/node/v8.h:26,
from /home/faebser/.node-gyp/10.6.0/include/node/node.h:63,
from ../HashSetWrap.h:9,
from ../HashSetWrap.cpp:6:
/home/faebser/.node-gyp/10.6.0/include/node/v8.h:2852:28: note: declared here
explicit Utf8Value(Local<v8::Value> obj));
^~~~~~~~~
/home/faebser/.node-gyp/10.6.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../HashSetWrap.cpp: In static member function ‘static void HashSetWrap::HashSetWrap::Exists(const v8::FunctionCallbackInfo<v8::Value>&)’:
../HashSetWrap.cpp:75:44: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
String::Utf8Value str(args[0]->ToString());
^
In file included from /home/faebser/.node-gyp/10.6.0/include/node/v8.h:26,
from /home/faebser/.node-gyp/10.6.0/include/node/node.h:63,
from ../HashSetWrap.h:9,
from ../HashSetWrap.cpp:6:
/home/faebser/.node-gyp/10.6.0/include/node/v8.h:2852:28: note: declared here
explicit Utf8Value(Local<v8::Value> obj));
^~~~~~~~~
/home/faebser/.node-gyp/10.6.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from /home/faebser/.node-gyp/10.6.0/include/node/node.h:63,
from ../HashSetWrap.h:9,
from ../HashSetWrap.cpp:6:
/home/faebser/.node-gyp/10.6.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/faebser/.node-gyp/10.6.0/include/node/node_object_wrap.h:85:78: required from here
/home/faebser/.node-gyp/10.6.0/include/node/v8.h:9360:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [hashset-cpp.target.mk:105: Release/obj.target/hashset-cpp/HashSetWrap.o] Error 1
make: Leaving directory '/home/faebser/opt/beaker/app/node_modules/ad-block/node_modules/hashset-cpp/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Linux 4.17.2-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/faebser/opt/beaker/app/node_modules/ad-block/node_modules/hashset-cpp
gyp ERR! node -v v10.6.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install 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! /home/faebser/.npm/_logs/2018-07-05T19_35_56_651Z-debug.log
npm WARN [email protected] requires a peer of hyperdrive@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: `npm install bloom-filter-cpp && npm install hashset-cpp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall 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! /home/faebser/.npm/_logs/2018-07-05T19_35_57_090Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! beakerbrowser@ postinstall: `cd app && npm install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the beakerbrowser@ 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! /home/faebser/.npm/_logs/2018-07-05T19_35_57_146Z-debug.log
npm run rebuild
> beakerbrowser@ rebuild /home/faebser/opt/beaker
> gulp rebuild
[21:35:57] Using gulpfile ~/opt/beaker/gulpfile.js
[21:35:57] Starting 'rebuild'...
/home/faebser/opt/beaker/app
npm rebuild --runtime=electron --target=2.0.2 --disturl=https://atom.io/download/atom-shell --build-from-source
[21:35:57] Finished 'rebuild' after 2.96 ms
> [email protected] postinstall /home/faebser/opt/beaker/app/node_modules/@beaker/core/node_modules/fs-jetpack/node_modules/spawn-sync
> node postinstall
> [email protected] postinstall /home/faebser/opt/beaker/app/node_modules/@beaker/core/node_modules/fs-jetpack/node_modules/spawn-sync
> node postinstall
> [email protected] postinstall /home/faebser/opt/beaker/app/node_modules/@beaker/core/node_modules/fs-jetpack/node_modules/lint-staged
> echo "🚫💩 lint-staged installed!
Do not forget to configure it. See https://github.com/okonet/lint-staged/blob/master/README.md" && exit 0
🚫💩 lint-staged installed!
Do not forget to configure it. See https://github.com/okonet/lint-staged/blob/master/README.md
> [email protected] install /home/faebser/opt/beaker/app/node_modules/@beaker/core/node_modules/fs-jetpack/node_modules/pre-commit
> node install.js
> [email protected] install /home/faebser/opt/beaker/app/node_modules/@beaker/core/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
sh: node-pre-gyp: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install 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! /home/faebser/.npm/_logs/2018-07-05T19_36_00_112Z-debug.log
npm run build
> beakerbrowser@ build /home/faebser/opt/beaker
> gulp build
[21:36:00] Using gulpfile ~/opt/beaker/gulpfile.js
[21:36:00] Starting 'burnthemall-maybe'...
[21:36:00] Finished 'burnthemall-maybe' after 469 μs
[21:36:00] Starting 'bundle'...
[21:36:00] Starting 'less'...
[21:36:00] Finished 'less' after 10 ms
'@beaker/core/webview' is imported by app/webview-preload.js, but could not be resolved – treating it as an external dependency
'@beaker/core/lib/error-page' is imported by app/shell-window/pages.js, but could not be resolved – treating it as an external dependency
'TimeoutError' is imported from external module 'beaker-error-constants' but never used
'TimeoutError' is imported from external module 'beaker-error-constants' but never used
'@beaker/core/lib/const' is imported by app/builtin-pages/com/files-browser/files-flat-view.js, but could not be resolved – treating it as an external dependency
'TimeoutError' is imported from external module 'beaker-error-constants' but never used
'@beaker/core/lib/strings' is imported by app/background-process/ui/permissions.js, but could not be resolved – treating it as an external dependency
'@beaker/core/lib/const' is imported by app/background-process/browser.js, but could not be resolved – treating it as an external dependency
'@beaker/core/lib/strings' is imported by app/builtin-pages/views/library-view.js, but could not be resolved – treating it as an external dependency
'@beaker/core/lib/const' is imported by app/background-process/analytics.js, but could not be resolved – treating it as an external dependency
'@beaker/core/lib/const' is imported by app/builtin-pages/views/library-view.js, but could not be resolved – treating it as an external dependency
'IS_GIT_URL_REGEX' is imported from external module '@beaker/core/lib/const' but never used
'@beaker/core/lib/error-page' is imported by app/background-process/protocols/beaker.js, but could not be resolved – treating it as an external dependency
[21:36:04] Finished 'bundle' after 3.91 s
[21:36:04] Starting 'build'...
[21:36:04] Finished 'build' after 36 μs
Yep that did not solve the problem.
Again, the bloom filter thing is just an upstream problem that's out of our hands. The node-pre-gyp is the thing we need to figure out here. I have no idea why that'd be happening. I'm going to try to reproduce on ubuntu 🤞
ok. let me know if I can do anything to help out
Piling on...
pegasus@Li⁺:~/code/beaker$ npm start
> beakerbrowser@ start /home/pegasus/code/beaker
> gulp start
[01:28:45] Using gulpfile ~/code/beaker/gulpfile.js
[01:28:45] Starting 'start'...
[01:28:45] Starting '<anonymous>'...
Spawning electron /home/pegasus/code/beaker/node_modules/electron/dist/electron
[01:28:45] The following tasks did not complete: start, <anonymous>
[01:28:45] Did you forget to signal async completion?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! beakerbrowser@ start: `gulp start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the beakerbrowser@ start 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! /home/pegasus/.npm/_logs/2018-08-16T06_28_45_827Z-debug.log
2018-08-16T06_28_45_827Z-debug.log
Running Artix (a descendant of Arch, which also includes Manjaro).
pegasus@Li⁺:~/code/beaker$ npm --version
6.4.0
pegasus@Li⁺:~/code/beaker$ node --version
v10.8.0
Any other information that could help you?
@PegasusEpsilon did you run the install steps? Try npm run burnthemall then npm start
@pfrazee That npm start is immediately after an npm run burnthemall.
Having the same issue as @PegasusEpsilon on standard arch. Same issue (I'm assuming) running the appimage https://aur.archlinux.org/packages/beaker-browser-bin/
% beaker-browser
/usr/bin/beaker-browser: line 7: 1557 Segmentation fault (core dumped) /opt/beaker-browser/beaker-browser.AppImage
I was just about to ask @PegasusEpsilon if there was any error being reported. Is it just segfaulting for you too?
Yeah that's the entire output from running the binary :S Here's the npm log file referred to when I run npm start, I think it looks the same as pegasus's:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle beakerbrowser@~prestart: beakerbrowser@
6 info lifecycle beakerbrowser@~start: beakerbrowser@
7 verbose lifecycle beakerbrowser@~start: unsafe-perm in lifecycle true
8 verbose lifecycle beakerbrowser@~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/mnt/hdd/home/me/prj/web/beaker/node_modules/.bin:/home/me/prg/torch/install/bin:/home/me/.gem/ruby/2.5.0/bin:/home/me/bin:/home/me/prg/torch/install/bin:/home/me/.gem/ruby/2.5.0/bin:/home/me/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/home/me/.cargo/bin:/opt/android-ndk:/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/opt/android-sdk/tools/bin:/opt/cuda/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/me/.cargo/bin
9 verbose lifecycle beakerbrowser@~start: CWD: /mnt/hdd/home/me/prj/web/beaker
10 silly lifecycle beakerbrowser@~start: Args: [ '-c', 'gulp start' ]
11 silly lifecycle beakerbrowser@~start: Returned: code: 1 signal: null
12 info lifecycle beakerbrowser@~start: Failed to exec start script
13 verbose stack Error: beakerbrowser@ start: `gulp start`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:304:16)
13 verbose stack at EventEmitter.emit (events.js:182:13)
13 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:182:13)
13 verbose stack at maybeClose (internal/child_process.js:961:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:250:5)
14 verbose pkgid beakerbrowser@
15 verbose cwd /mnt/hdd/home/me/prj/web/beaker
16 verbose Linux 4.17.14-arch1-1-ARCH
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
18 verbose node v10.9.0
19 verbose npm v6.4.0
20 error code ELIFECYCLE
21 error errno 1
22 error beakerbrowser@ start: `gulp start`
22 error Exit status 1
23 error Failed at the beakerbrowser@ start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
pegasus@Li⁺:~$ APPIMAGE_SILENT_INSTALL=1 strace -f /opt/beaker-browser/beaker-browser.AppImage 2>beaker.log
Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information
Works for me when I launch with ELECTRON_PATH=/usr/bin/electron npm start.
pegasus@Li⁺:~/code/beaker$ npm i -D electron@beta
...
pegasus@Li⁺:~/code/beaker$ npm run burnthemall
Aaaaannnd...We're looping forever.
Yeah, just amplifying @Powersource's solution (100x thanks to @Powersource for figuring this out)
Arch users who are having trouble, try this:
sudo pacman -S electron
ELECTRON_PATH=/usr/bin/electron npm start
Hopefully upstream will have this solved soon.
@PegasusEpsilon yeah burnthemall is going to delete the electron install for the repo. If you want, you could do npm i -D electron@beta ; npm run rebuild but you'll need to update the rebuild script to reference the correct electron version
@pfrazee Already installing from the Arch package repo to see if that works. If it works, there's a one-line patch to the AUR beaker-browser-bin package that should fix it. I'll work it out and give it to the maintainer.
EDIT:
The ELECTRON_PATH trick didn't work for the package simply, now digging into the guts to figure out where to actually put it.
EDIT2: ...oh, it's precompiled. Well then. How the heck do you get this git repo to build an AppImage...
@PegasusEpsilon appreciate it!
@pfrazee I'd love to be able to accept your appreciation, but it seems he's only packaged your AppImage release. I have no idea how to build one of those, and it seems he doesn't either. Not that I'm much of a fan of AppImage packages...
I've suggested that him and I collaborate on a -git branch of the package (since I have an idea for how to make that work) but he hasn't replied. I guess Arch (and Artix, and who knows what other descendants) are just out of luck until somebody makes a new AppImage, or a -git branch of the package.
Hey guys seems this is still open? Pulled the latest, and the ELECTRON_PATH thing doesn't always work, and if the browser does start ... it will hang shortly after.
Linux XXX 4.17.13-arch1-1-ARCH #1 SMP PREEMPT Mon Aug 6 23:06:31 UTC 2018 x86_64 GNU/Linux
node -v: v8.11.4
electron -v: v2.0.7
DE: gnome
12 info lifecycle beakerbrowser@~start: Failed to exec start script
13 verbose stack Error: beakerbrowser@ start: gulp start
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid beakerbrowser@
15 verbose cwd /home/XXX/beaker
16 verbose Linux 4.17.13-arch1-1-ARCH
17 verbose argv "/home/XXX/.nvm/versions/node/v8.11.4/bin/node" "/home/XXX/.nvm/versions/node/v8.11.4/bin/npm" "start"
18 verbose node v8.11.4
@datafatmunger AUR updated almost exactly an hour ago. See https://aur.archlinux.org/packages/beaker-browser-bin/
If that doesn't help, we can dig deeper.
Indeed looks good at the moment. Thx for the update!
An error happens during npm install
npm ERR! Linux 4.15.0-55-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] install: `node install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pre-commit package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs pre-commit
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls pre-commit
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/me/work/beaker/npm-debug.log
@ihor-nahuliak Yeah you have node installed as nodejs and our build scripts expect node. Can you alias nodejs to node?
@pfrazee Update the documentation, please. It would be great also if somebody could make a docker image to try it easy.
Most helpful comment
Yeah, just amplifying @Powersource's solution (100x thanks to @Powersource for figuring this out)
Arch users who are having trouble, try this:
Hopefully upstream will have this solved soon.