Slack init command doesn't use packageManager from package.json
Nobody has claimed this yet.
- 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:
- Run
slack init -vin your project. - View logs to see npm is used.
- Command takes a long time.
Expected result:
- Slack CLI detects
packageManager - Slack CLI runs commands using this
packageManager - If
@slack/cli-hooksare already installed the command takes milliseconds.
Actual result:
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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