slackapi / slackapi/slack-cli

Slack init command doesn't use packageManager from package.json

Open
#170 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area:bolt-js discussion
Dominant language
Go
Stars
305
Forks
46
Avg merge
1d 11h
Merged PRs (30d)
23

Description

Description

When running the slack init command the CLI doesn't use the packageManager defined by the user in package.json. This causes it to hang and reinstall all dependencies using npm.

Version

v3.5.1

OS Info
ProductName:            macOS
ProductVersion:         15.5
BuildVersion:           24F74
Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:49 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6000
Steps to reproduce:

Share the commands to run, source code, and project settings:

  1. Run slack init -v in your project.
  2. View logs to see npm is used.
  3. Command takes a long time.
Expected result:
  1. Slack CLI detects packageManager
  2. Slack CLI runs commands using this packageManager
  3. If @slack/cli-hooks are already installed the command takes milliseconds.
Actual result:
Image

npm is used and the command takes very long

Requirements
  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

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 by reproducing slack init -v in a project with a package.json packageManager field and inspect the init path that invokes dependency installation. Verify which package manager is selected and whether installed @slack/cli-hooks dependencies are reused; done means init uses the declared manager without unnecessary reinstalls.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.