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 -v in 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-hooks are already installed the command takes milliseconds.
Actual result:
npm is used and the command takes very long
Requirements
Description
When running the slack
initcommand the CLI doesn't use thepackageManagerdefined by the user inpackage.json. This causes it to hang and reinstall all dependencies usingnpm.Version
v3.5.1
OS Info
Steps to reproduce:
Share the commands to run, source code, and project settings:
slack init -vin your project.Expected result:
packageManagerpackageManager@slack/cli-hooksare already installed the command takes milliseconds.Actual result:
npmis used and the command takes very longRequirements