draeder / easypeers

Easy serverless swarms of WebRTC peers over WebTorrent
MIT License
41 stars 2 forks source link

install error idealTree already exists #15

Closed pwFoo closed 1 year ago

pwFoo commented 1 year ago

Hi,

install failed inside of node:alpine and node:lts-alpine containers:

/ # npm i easypeers
npm ERR! Tracker "idealTree" already exists

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-07-17T18_36_13_919Z-debug-0.log

debug log

36 timing idealTree:userRequests Completed in 14ms
37 silly idealTree buildDeps
38 timing idealTree Completed in 31ms
39 timing command:i Completed in 276ms
40 verbose stack Error: Tracker "idealTree" already exists
40 verbose stack     at [_onError] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/tracker.js:100:11)
40 verbose stack     at Arborist.addTracker (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/tracker.js:27:21)
40 verbose stack     at [buildDeps] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:775:10)
40 verbose stack     at Arborist.buildIdealTree (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:207:29)
40 verbose stack     at async Promise.all (index 1)
40 verbose stack     at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:159:5)
40 verbose stack     at async Install.exec (/usr/local/lib/node_modules/npm/lib/commands/install.js:146:5)
40 verbose stack     at async module.exports (/usr/local/lib/node_modules/npm/lib/cli.js:134:5)
pwFoo commented 1 year ago

Looks like my (older) docker have problems with node...

Default node:latest fails too

~/easypeers$ docker run --rm -ti node sh
# npm i easypeers
node[10]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
 1: 0xc94240 node::Abort() [node]
 2: 0xc942be  [node]
 3: 0xd0fe99 node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int) [node]
 4: 0xd0ffbc node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
 5: 0xc4fbf3  [node]
 6: 0xc5055b node::Start(int, char**) [node]
 7: 0x7f12b667318a  [/lib/x86_64-linux-gnu/libc.so.6]
 8: 0x7f12b6673245 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
 9: 0xbac62e _start [node]
Aborted

Because it should be server / docker related I close the issue ...

draeder commented 1 year ago

Thanks for reporting the issue. I have not tested the codebase with Docker yet. You may want to upgrade to the latest commit. There was a pretty critical error in the code that was not honoring passed in topics that has been resolved in the latest.