beaker icon indicating copy to clipboard operation
beaker copied to clipboard

Beaker Installation Issues

Open raphael10-collab opened this issue 2 years ago • 0 comments

Describe the Bug

To Reproduce

Expected Behavior

Screenshots

Environment

  • OS: Ubuntu 20.04 Desktop
  • Beaker Version:

Additional Context

Issues in Beaker Installation:

(base) raphy@pc:~$ sudo apt-get install libtool m4 make g++ autoconf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
autoconf is already the newest version (2.69-11.1).
g++ is already the newest version (4:9.3.0-1ubuntu2).
g++ set to manually installed.
libtool is already the newest version (2.4.6-14).
m4 is already the newest version (1.4.18-4).
make is already the newest version (4.2.1-1.2).
make set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
(base) raphy@pc:~$ git clone https://github.com/beakerbrowser/beaker.git
Cloning into 'beaker'...
remote: Enumerating objects: 76592, done.
remote: Total 76592 (delta 0), reused 0 (delta 0), pack-reused 76592
Receiving objects: 100% (76592/76592), 41.46 MiB | 23.56 MiB/s, done.
Resolving deltas: 100% (58290/58290), done.
(base) raphy@pc:~$ cd beaker/
(base) raphy@pc:~/beaker$ cd scripts/
(base) raphy@pc:~/beaker/scripts$ npm install
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
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]: cross-spawn no longer requires a build toolchain, use it instead

> postinstall
> cd ../app && npm install && cd bg/dat/converter && npm install

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/sqlite3
npm ERR!   sqlite3@"^4.1.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional sqlite3@"^5.0.0" from [email protected]
npm ERR! node_modules/knex
npm ERR!   knex@"^0.21.0" from the root project
npm ERR!   peer knex@"*" from [email protected]
npm ERR!   node_modules/knex-on-conflict-do-nothing
npm ERR!     knex-on-conflict-do-nothing@"^1.0.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/sqlite3
npm ERR!   peerOptional sqlite3@"^5.0.0" from [email protected]
npm ERR!   node_modules/knex
npm ERR!     knex@"^0.21.0" from the root project
npm ERR!     peer knex@"*" from [email protected]
npm ERR!     node_modules/knex-on-conflict-do-nothing
npm ERR!       knex-on-conflict-do-nothing@"^1.0.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /home/raphy/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/raphy/.npm/_logs/2022-05-30T19_19_05_236Z-debug-0.log
npm ERR! code 1
npm ERR! path /home/raphy/beaker/scripts
npm ERR! command failed
npm ERR! command sh -c cd ../app && npm install && cd bg/dat/converter && npm install

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/raphy/.npm/_logs/2022-05-30T19_18_05_743Z-debug-0.log
(base) raphy@pc:~/beaker/scripts$ npm run burnthemall

> burnthemall
> node ./tasks/burnthemall.js

rm -rf /home/raphy/beaker/scripts/node_modules
rm -rf /home/raphy/beaker/app/node_modules
rm /home/raphy/beaker/scripts/package-lock.json
rm /home/raphy/beaker/app/package-lock.json
npm install
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
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]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.

> postinstall
> cd ../app && npm install && cd bg/dat/converter && npm install

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/sqlite3
npm ERR!   sqlite3@"^4.1.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional sqlite3@"^5.0.0" from [email protected]
npm ERR! node_modules/knex
npm ERR!   knex@"^0.21.0" from the root project
npm ERR!   peer knex@"*" from [email protected]
npm ERR!   node_modules/knex-on-conflict-do-nothing
npm ERR!     knex-on-conflict-do-nothing@"^1.0.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/sqlite3
npm ERR!   peerOptional sqlite3@"^5.0.0" from [email protected]
npm ERR!   node_modules/knex
npm ERR!     knex@"^0.21.0" from the root project
npm ERR!     peer knex@"*" from [email protected]
npm ERR!     node_modules/knex-on-conflict-do-nothing
npm ERR!       knex-on-conflict-do-nothing@"^1.0.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /home/raphy/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/raphy/.npm/_logs/2022-05-30T19_22_44_890Z-debug-0.log
npm ERR! code 1
npm ERR! path /home/raphy/beaker/scripts
npm ERR! command failed
npm ERR! command sh -c cd ../app && npm install && cd bg/dat/converter && npm install

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/raphy/.npm/_logs/2022-05-30T19_22_36_522Z-debug-0.log
npm run rebuild

> rebuild
> gulp rebuild

[21:24:05] Using gulpfile ~/beaker/scripts/gulpfile.js
[21:24:05] Starting 'rebuild'...
[21:24:05] Starting '<anonymous>'...
/home/raphy/beaker/app
npm rebuild sqlite3 --runtime=electron --target=11.0.0-beta.18 --disturl=https://electronjs.org/headers --build-from-source
rebuilt dependencies successfully
npm run build

> build
> gulp build

[21:24:06] Using gulpfile ~/beaker/scripts/gulpfile.js
[21:24:06] Starting 'build'...
[21:24:06] Starting 'bundle'...
[21:24:06] Starting 'burnthemall-maybe'...
[21:24:06] Starting 'burnthemallMaybeTask'...
[21:24:06] Finished 'burnthemallMaybeTask' after 1.12 ms
[21:24:06] Finished 'burnthemall-maybe' after 1.96 ms
[21:24:06] Starting 'bundleTask'...
'listCache' is not exported by '../app/bg/hyper/dns.js'
[21:24:08] 'bundleTask' errored after 2.75 s
[21:24:08] Error: Can't walk dependency graph: Cannot find module '@beaker/dat-serve-resolve-path' from '/home/raphy/beaker/app/_stream_0.js'
    required by /home/raphy/beaker/app/_stream_0.js
    at /home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:146:35
    at processDirs (/home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:299:39)
    at isdir (/home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:306:32)
    at /home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:34:69
    at FSReqCallback.oncomplete (node:fs:198:21)
    at FSReqCallback.callbackTrampoline (node:internal/async_hooks:130:17)
[21:24:08] 'bundle' errored after 2.75 s
[21:24:08] 'build' errored after 2.76 s
[21:24:09] Finished '<anonymous>' after 3.67 s
[21:24:09] Finished 'rebuild' after 3.67 s
npm run build

> build
> gulp build

[21:24:09] Using gulpfile ~/beaker/scripts/gulpfile.js
[21:24:09] Starting 'build'...
[21:24:09] Starting 'bundle'...
[21:24:09] Starting 'burnthemall-maybe'...
[21:24:09] Starting 'burnthemallMaybeTask'...
[21:24:09] Finished 'burnthemallMaybeTask' after 1.05 ms
[21:24:09] Finished 'burnthemall-maybe' after 1.77 ms
[21:24:09] Starting 'bundleTask'...
'listCache' is not exported by '../app/bg/hyper/dns.js'
[21:24:12] 'bundleTask' errored after 2.61 s
[21:24:12] Error: Can't walk dependency graph: Cannot find module '@beaker/dat-serve-resolve-path' from '/home/raphy/beaker/app/_stream_0.js'
    required by /home/raphy/beaker/app/_stream_0.js
    at /home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:146:35
    at processDirs (/home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:299:39)
    at isdir (/home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:306:32)
    at /home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:34:69
    at FSReqCallback.oncomplete (node:fs:198:21)
    at FSReqCallback.callbackTrampoline (node:internal/async_hooks:130:17)
[21:24:12] 'bundle' errored after 2.61 s
[21:24:12] 'build' errored after 2.62 s
(base) raphy@pc:~/beaker/scripts$ npm start

> start
> gulp start

[21:25:29] Using gulpfile ~/beaker/scripts/gulpfile.js
[21:25:29] Starting 'start'...
[21:25:29] Starting '<anonymous>'...
Spawning electron /home/raphy/beaker/scripts/node_modules/electron/dist/electron
App threw an error during load
Error: Cannot find module 'winston'
Require stack:
- /home/raphy/beaker/app/main.build.js
- /home/raphy/beaker/scripts/node_modules/electron/dist/resources/default_app.asar/main.js
- 
    at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
    at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
    at Module._load (internal/modules/cjs/loader.js:848:27)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12694)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at /home/raphy/beaker/app/main.build.js:8:15
    at Object.<anonymous> (/home/raphy/beaker/app/main.build.js:18664:2)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module 'winston'
Require stack:
- /home/raphy/beaker/app/main.build.js
- /home/raphy/beaker/scripts/node_modules/electron/dist/resources/default_app.asar/main.js
- 
    at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
    at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
    at Module._load (internal/modules/cjs/loader.js:848:27)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12694)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at /home/raphy/beaker/app/main.build.js:8:15
    at Object.<anonymous> (/home/raphy/beaker/app/main.build.js:18664:2)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
^C
(base) raphy@pc:~/beaker/scripts$ npm install winston
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead

added 24 packages, and audited 1092 packages in 9s

66 packages are looking for funding
  run `npm fund` for details

20 vulnerabilities (2 low, 6 moderate, 9 high, 3 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
(base) raphy@pc:~/beaker/scripts$ npm start

> start
> gulp start

[21:25:50] Using gulpfile ~/beaker/scripts/gulpfile.js
[21:25:50] Starting 'start'...
[21:25:50] Starting '<anonymous>'...
Spawning electron /home/raphy/beaker/scripts/node_modules/electron/dist/electron
App threw an error during load
Error: Cannot find module 'winston'
Require stack:
- /home/raphy/beaker/app/main.build.js
- /home/raphy/beaker/scripts/node_modules/electron/dist/resources/default_app.asar/main.js
- 
    at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
    at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
    at Module._load (internal/modules/cjs/loader.js:848:27)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12694)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at /home/raphy/beaker/app/main.build.js:8:15
    at Object.<anonymous> (/home/raphy/beaker/app/main.build.js:18664:2)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module 'winston'
Require stack:
- /home/raphy/beaker/app/main.build.js
- /home/raphy/beaker/scripts/node_modules/electron/dist/resources/default_app.asar/main.js
- 
    at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
    at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
    at Module._load (internal/modules/cjs/loader.js:848:27)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12694)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at /home/raphy/beaker/app/main.build.js:8:15
    at Object.<anonymous> (/home/raphy/beaker/app/main.build.js:18664:2)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
^C
(base) raphy@pc:~/beaker/scripts$ npm run burnthemall

> burnthemall
> node ./tasks/burnthemall.js

rm -rf /home/raphy/beaker/scripts/node_modules
rm -rf /home/raphy/beaker/app/node_modules
rm /home/raphy/beaker/scripts/package-lock.json
rm /home/raphy/beaker/app/package-lock.json
npm install
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
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]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.

> postinstall
> cd ../app && npm install && cd bg/dat/converter && npm install

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/sqlite3
npm ERR!   sqlite3@"^4.1.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional sqlite3@"^5.0.0" from [email protected]
npm ERR! node_modules/knex
npm ERR!   knex@"^0.21.0" from the root project
npm ERR!   peer knex@"*" from [email protected]
npm ERR!   node_modules/knex-on-conflict-do-nothing
npm ERR!     knex-on-conflict-do-nothing@"^1.0.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/sqlite3
npm ERR!   peerOptional sqlite3@"^5.0.0" from [email protected]
npm ERR!   node_modules/knex
npm ERR!     knex@"^0.21.0" from the root project
npm ERR!     peer knex@"*" from [email protected]
npm ERR!     node_modules/knex-on-conflict-do-nothing
npm ERR!       knex-on-conflict-do-nothing@"^1.0.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /home/raphy/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/raphy/.npm/_logs/2022-05-30T19_27_13_820Z-debug-0.log
npm ERR! code 1
npm ERR! path /home/raphy/beaker/scripts
npm ERR! command failed
npm ERR! command sh -c cd ../app && npm install && cd bg/dat/converter && npm install

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/raphy/.npm/_logs/2022-05-30T19_26_00_478Z-debug-0.log
npm run rebuild

> rebuild
> gulp rebuild

[21:29:37] Using gulpfile ~/beaker/scripts/gulpfile.js
[21:29:37] Starting 'rebuild'...
[21:29:37] Starting '<anonymous>'...
/home/raphy/beaker/app
npm rebuild sqlite3 --runtime=electron --target=11.0.0-beta.18 --disturl=https://electronjs.org/headers --build-from-source
rebuilt dependencies successfully
npm run build

> build
> gulp build

[21:29:38] Using gulpfile ~/beaker/scripts/gulpfile.js
[21:29:38] Starting 'build'...
[21:29:38] Starting 'bundle'...
[21:29:38] Starting 'burnthemall-maybe'...
[21:29:38] Starting 'burnthemallMaybeTask'...
[21:29:38] Finished 'burnthemallMaybeTask' after 1.02 ms
[21:29:38] Finished 'burnthemall-maybe' after 1.62 ms
[21:29:38] Starting 'bundleTask'...
'listCache' is not exported by '../app/bg/hyper/dns.js'
[21:29:41] 'bundleTask' errored after 2.59 s
[21:29:41] Error: Can't walk dependency graph: Cannot find module '@beaker/dat-serve-resolve-path' from '/home/raphy/beaker/app/_stream_0.js'
    required by /home/raphy/beaker/app/_stream_0.js
    at /home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:146:35
    at processDirs (/home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:299:39)
    at isdir (/home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:306:32)
    at /home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:34:69
    at FSReqCallback.oncomplete (node:fs:198:21)
    at FSReqCallback.callbackTrampoline (node:internal/async_hooks:130:17)
[21:29:41] 'bundle' errored after 2.6 s
[21:29:41] 'build' errored after 2.6 s
[21:29:41] Finished '<anonymous>' after 3.43 s
[21:29:41] Finished 'rebuild' after 3.43 s
npm run build

> build
> gulp build

[21:29:41] Using gulpfile ~/beaker/scripts/gulpfile.js
[21:29:41] Starting 'build'...
[21:29:41] Starting 'bundle'...
[21:29:41] Starting 'burnthemall-maybe'...
[21:29:41] Starting 'burnthemallMaybeTask'...
[21:29:41] Finished 'burnthemallMaybeTask' after 999 μs
[21:29:41] Finished 'burnthemall-maybe' after 1.66 ms
[21:29:41] Starting 'bundleTask'...
'listCache' is not exported by '../app/bg/hyper/dns.js'
[21:29:44] 'bundleTask' errored after 2.62 s
[21:29:44] Error: Can't walk dependency graph: Cannot find module '@beaker/dat-serve-resolve-path' from '/home/raphy/beaker/app/_stream_0.js'
    required by /home/raphy/beaker/app/_stream_0.js
    at /home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:146:35
    at processDirs (/home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:299:39)
    at isdir (/home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:306:32)
    at /home/raphy/beaker/scripts/node_modules/resolve/lib/async.js:34:69
    at FSReqCallback.oncomplete (node:fs:198:21)
    at FSReqCallback.callbackTrampoline (node:internal/async_hooks:130:17)
[21:29:44] 'bundle' errored after 2.62 s
[21:29:44] 'build' errored after 2.62 s
(base) raphy@pc:~/beaker/scripts$ 

raphael10-collab avatar May 30 '22 19:05 raphael10-collab