Error tracker idealtree already exists

What / Why I've been unable to install anything (e.g. npm install npm-groovy-lint) because of an error that wouldn't go away. When Every time I try npm install $packagename Where n/a How Cu...

What / Why

I’ve been unable to install anything (e.g. npm install npm-groovy-lint) because of an error that wouldn’t go away.

When

  • Every time I try npm install $packagename

Where

  • n/a

How

Current Behavior

  • Type npm install npm-groovy-lint, see ‘The package-lock.json file was created with an old version of npm, so supplemental metadata must be fetched from the registry. This is a one-time fix-up, please be patient…’, followed by a long list of packages being checked, followed by an error message:
4065 silly inflate node_modules/edge
4066 silly inflate packages/edge
4067 http fetch GET 200 https://registry.npmjs.org/@types%2fnode 1163ms (cache updated)
4068 silly inflate packages/edge/node_modules/keycloak-js
4069 silly inflate node_modules/cas
4070 silly inflate packages/cas
4071 timing idealTree Completed in 22840ms
4072 timing command:install Completed in 22874ms
4073 notice New ^[[33mminor^[[39m version of npm available! ^[[31m7.23.0^[[39m -> ^[[32m7.24.2^[[39m
4073 notice Changelog: ^[[36mhttps://github.com/npm/cli/releases/tag/v7.24.2^[[39m
4073 notice Run ^[[32mnpm install -g npm@7.24.2^[[39m to update!
4074 verbose stack Error: Tracker "idealTree:inflate:" already exists
4074 verbose stack     at Arborist.[_onError] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/tracker.js:107:11)
4074 verbose stack     at Arborist.addTracker (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/tracker.js:31:21)
4074 verbose stack     at Array.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:716:14)
4074 verbose stack     at run (/usr/local/lib/node_modules/npm/node_modules/promise-call-limit/index.js:30:26)
4074 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/promise-call-limit/index.js:33:7
4075 verbose cwd /home/chowes/work/ns/management-ui
4076 verbose Linux 5.13.19-200.fc34.x86_64
4077 verbose argv "/usr/bin/node" "/usr/local/bin/npm" "install" "npm-groovy-lint"
4078 verbose node v14.17.6
4079 verbose npm  v7.23.0
4080 error Tracker "idealTree:inflate:" already exists
4081 verbose exit 1

Steps to Reproduce

  • Install @npmcli/arborist version 2.9.0 : other versions not tested, as couldn’t install anything
  • Have an old lock file
  • Type npm install npm-groovy-lint

Expected Behavior

  • No error, it should «just work»

Steps to Workaround

  • I modified /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:717
  • Exact link: https://github.com/npm/arborist/blob/v2.9.0/lib/arborist/build-ideal-tree.js#L717
  • Current git repository link: https://github.com/npm/arborist/blob/main/lib/arborist/build-ideal-tree.js#L727
  • Old code:
        const t = `idealTree:inflate:${sloc}`
        this.addTracker(t)
  • New code:
        const rand = Math.random()
        const t = `idealTree:inflate:${sloc}:${rand}`
        this.addTracker(t)
  • With this change, the error Tracker "idealTree:inflate:" already exists went away.
  • It appears that the sloc variable was an empty string two times, leading to a duplicate tracker error message.

Who

  • n/a

References

  • n/a

When I try to build a Nodejs application with a Docker file I have received “npm ERR! Tracker “idealTree” already exists” error. I noticed the error with Node version 15.

Here is my Dockerfile.

#Base image name

FROM node:alpine

COPY ./ ./

RUN npm install

#default command

CMD [“npm”,”start”]

And when executing the docker build command I got the below error.

azureuser@Devops-test-vm:~/simpleweb$ docker build .

Sending build context to Docker daemon  4.096kB
Step 1/4 : FROM node:alpine
 ---> 48de5d16038c
Step 2/4 : COPY ./ ./
 ---> aead9d57f1a5
Step 3/4 : RUN npm install
 ---> Running in 4638cdcc19d5
npm notice 
npm notice New minor version of npm available! 7.15.1 -> 7.16.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v7.16.0>
npm notice Run `npm install -g npm@7.16.0` to update!
npm notice 
npm ERR! Tracker "idealTree" already exists
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-06-05T07_14_16_103Z-debug.log

To fix the error I have added a working directory in the docker file as below.

#Base image name

FROM node:alpine

WORKDIR /usr/app

COPY ./ ./

RUN npm install

#default command

CMD [“npm”,”start”]

And this time the build was successful.

azureuser@Devops-test-vm:~/simpleweb$ docker build .

Sending build context to Docker daemon  4.096kB
Step 1/5 : FROM node:alpine
 ---> 48de5d16038c
Step 2/5 : WORKDIR /usr/app
 ---> Running in 4b1036ca6637
Removing intermediate container 4b1036ca6637
 ---> 5b67d912d96c
Step 3/5 : COPY ./ ./
 ---> 44e1f8d3d92b
Step 4/5 : RUN npm install
 ---> Running in 19aa1fc2b0e7
added 50 packages, and audited 51 packages in 2s

found 0 vulnerabilities
npm notice 
npm notice New minor version of npm available! 7.15.1 -> 7.16.0
npm notice Changelog:<https://github.com/npm/cli/releases/tag/v7.16.0>
npm notice Run `npm install -g npm@7.16.0` to update!
npm notice 
Removing intermediate container 19aa1fc2b0e7
 ---> ade617fbdc94
Step 5/5 : CMD ["npm","start"]
 ---> Running in 127f407ddf7d
Removing intermediate container 127f407ddf7d
 ---> 94504a1b276f
Successfully built 94504a1b276f

What / Why

I’ve been unable to install anything (e.g. npm install npm-groovy-lint) because of an error that wouldn’t go away.

When

  • Every time I try npm install $packagename

Where

  • n/a

How

Current Behavior

  • Type npm install npm-groovy-lint, see ‘The package-lock.json file was created with an old version of npm, so supplemental metadata must be fetched from the registry. This is a one-time fix-up, please be patient…’, followed by a long list of packages being checked, followed by an error message:
4065 silly inflate node_modules/edge
4066 silly inflate packages/edge
4067 http fetch GET 200 https://registry.npmjs.org/@types%2fnode 1163ms (cache updated)
4068 silly inflate packages/edge/node_modules/keycloak-js
4069 silly inflate node_modules/cas
4070 silly inflate packages/cas
4071 timing idealTree Completed in 22840ms
4072 timing command:install Completed in 22874ms
4073 notice New ^[[33mminor^[[39m version of npm available! ^[[31m7.23.0^[[39m -> ^[[32m7.24.2^[[39m
4073 notice Changelog: ^[[36mhttps://github.com/npm/cli/releases/tag/v7.24.2^[[39m
4073 notice Run ^[[32mnpm install -g npm@7.24.2^[[39m to update!
4074 verbose stack Error: Tracker "idealTree:inflate:" already exists
4074 verbose stack     at Arborist.[_onError] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/tracker.js:107:11)
4074 verbose stack     at Arborist.addTracker (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/tracker.js:31:21)
4074 verbose stack     at Array.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:716:14)
4074 verbose stack     at run (/usr/local/lib/node_modules/npm/node_modules/promise-call-limit/index.js:30:26)
4074 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/promise-call-limit/index.js:33:7
4075 verbose cwd /home/chowes/work/ns/management-ui
4076 verbose Linux 5.13.19-200.fc34.x86_64
4077 verbose argv "/usr/bin/node" "/usr/local/bin/npm" "install" "npm-groovy-lint"
4078 verbose node v14.17.6
4079 verbose npm  v7.23.0
4080 error Tracker "idealTree:inflate:" already exists
4081 verbose exit 1

Steps to Reproduce

  • Install @npmcli/arborist version 2.9.0 : other versions not tested, as couldn’t install anything
  • Have an old lock file
  • Type npm install npm-groovy-lint

Expected Behavior

  • No error, it should «just work»

Steps to Workaround

  • I modified /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:717
  • Exact link: https://github.com/npm/arborist/blob/v2.9.0/lib/arborist/build-ideal-tree.js#L717
  • Current git repository link: https://github.com/npm/arborist/blob/main/lib/arborist/build-ideal-tree.js#L727
  • Old code:
        const t = `idealTree:inflate:${sloc}`
        this.addTracker(t)
  • New code:
        const rand = Math.random()
        const t = `idealTree:inflate:${sloc}:${rand}`
        this.addTracker(t)
  • With this change, the error Tracker "idealTree:inflate:" already exists went away.
  • It appears that the sloc variable was an empty string two times, leading to a duplicate tracker error message.

Who

  • n/a

References

  • n/a

Hi, first post (this is how much I want it back)

Short version:
Can anyone please give me a pointer about where exactly is ./node_modules/single-file/cli/single-file ?
I need to specify them in my conf file.
Thank you

Long version:
Pi 4, docker installaion, ran fine for the past weeks, just broke on me out of the blue.
Snapshot quickly stopped at 6MB (that particular page from my experience should be way less than 6MB).
Error log says unable to install chromium thru playwright.
I decided to skip docker and install on host (not gonna T-shoot that).
Did init, updated node.js, setup. Output of archivebox version below looks fine.
But when trying to snapshot again, I got chromium Errno 2, singlefile Errno 2, and readability Errno 2 , and mercury Errno 2.

           ...
            Extractor failed:                                                                                                   
            FileNotFoundError [Errno 2] No such file or directory: 'single-file': 'single-file'
            Extractor failed:                                                                                                   
            FileNotFoundError [Errno 2] No such file or directory: 'readability-extractor': 'readability-extractor'
           ...

So I looked up the chromium binary location from archivebox version output and added below in ArchiveBox.conf
CHROME_BINARY = /usr/bin/chromium-browser
That fixed the chromium Errno 2. That was easy.

So I go ahead and did the same to singlefile, readability, and mercury in ArchiveBox.conf

SINGLEFILE_BINARY = ./node_modules/single-file/cli/single-file
READABILITY_BINARY =  ./node_modules/readability-extractor/readability-extractor
MERCURY_BINARY = ./node_modules/@postlight/mercury-parser/cli.js

Error stays. Pointer please~!

Thank you

$ archivebox version
ArchiveBox v0.6.2
Cpython Linux Linux-5.10.103-v8+-aarch64-with-debian-10.12 aarch64
IN_DOCKER=False DEBUG=False IS_TTY=True TZ=UTC SEARCH_BACKEND_ENGINE=ripgrep

[i] Dependency versions:
 √  ARCHIVEBOX_BINARY                 v0.6.2          valid     /usr/bin/archivebox                                                         
 √  PYTHON_BINARY                         v3.7.3          valid     /usr/bin/python3.7                                                          
 √  DJANGO_BINARY                       v3.1.14          valid     /usr/local/lib/python3.7/dist-packages/django/bin/django-admin.py           
 √  CURL_BINARY                           v7.64.0          valid     /usr/bin/curl                                                               
 √  WGET_BINARY                           v1.20.1          valid     /usr/bin/wget                                                               
 √  NODE_BINARY                         v16.16.0         valid     /usr/bin/node                                                               
 √  SINGLEFILE_BINARY                  v1.0.11          valid     ./node_modules/single-file/cli/single-file                                  
 √  READABILITY_BINARY                v0.0.4          valid     ./node_modules/readability-extractor/readability-extractor                  
 √  MERCURY_BINARY                      v1.0.0          valid     ./node_modules/@postlight/mercury-parser/cli.js                             
 √  GIT_BINARY                               v2.20.1          valid     /usr/bin/git                                                                
 √  YOUTUBEDL_BINARY        v2021.12.17          valid     /usr/local/bin/youtube-dl                                                   
 √  CHROME_BINARY         v92.0.4515.98          valid     /usr/bin/chromium-browser                                                   
 √  RIPGREP_BINARY                      v0.10.0         valid     /usr/bin/rg                                                                 

[i] Source-code locations:
 √  PACKAGE_DIR           23 files        valid     /usr/lib/python3/dist-packages/archivebox                                   
 √  TEMPLATES_DIR         3 files         valid     /usr/lib/python3/dist-packages/archivebox/templates                         
 -  CUSTOM_TEMPLATES_DIR  -               disabled                                                                              

[i] Secrets locations:
 -  CHROME_USER_DATA_DIR  -               disabled                                                                              
 -  COOKIES_FILE          -               disabled                                                                              

[i] Data locations:
 √  OUTPUT_DIR            7 files         valid     /media/archive                                                              
 √  SOURCES_DIR           0 files         valid     ./sources                                                                   
 √  LOGS_DIR              1 files         valid     ./logs                                                                      
 √  ARCHIVE_DIR           0 files         valid     ./archive                                                                   
 √  CONFIG_FILE           81.0 Bytes      valid     ./ArchiveBox.conf                                                           
 √  SQL_INDEX             204.0 KB        valid     ./index.sqlite3                                                             

Понравилась статья? Поделить с друзьями:
  • Error torch has an invalid wheel dist info directory not found
  • Error tools отзывы
  • Error too much data in gallery tilda
  • Error too many recipients from
  • Error too many initializers for char