jfrog / jfrog/jfrog-cli

jfrog-cli-v2-jf takes ages to install

Open
#3,423 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
595
Forks
307
Avg merge
4d 17h
Merged PRs (30d)
17

Description

Describe the bug

Running npm i -g jfrog-cli-v2-jf takes over 1 minute to install. With ignore-scripts: true, this is about 100ms, so it's the postinstall step.

Current behavior
$ npm i -g jfrog-cli-v2-jf --ignore-scripts=false

added 1 package in 1m

I added some log statements to the init.js script. It's hanging after writing the file and changing permissions.

Reproduction steps

npm i -g jfrog-cli-v2-jf

Expected behavior

It should not take over 1 minute to download the binary.

JFrog CLI version

2.98.0

Operating system type and version

Darwin Kernel Version 23.6.0

JFrog Artifactory version

No response

JFrog Xray version

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the npm package's postinstall init.js script and reproduce the delay with npm i -g jfrog-cli-v2-jf. Compare normal installation with --ignore-scripts=true, focusing on the binary download after the file is written and permissions are changed. Done means the package installs without taking over a minute to download the binary.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.