Closed FallingReign closed 4 months ago
Hey @FallingReign 👋 Thanks for digging into debug logs for this and it's great to know you found the manual install workaround! We're exploring solutions to this at the moment, but it's still unclear why this happens to be honest...
Just for my own understanding, is this happening with just slack-samples/bolt-js-custom-function-template
or also with slack-samples/bolt-python-custom-function-template
?
Thank you again for including these logs! Just writing thoughts here, so feel free to ignore.
The first "unsupported runtime found" is expected as part of initializing the CLI outside of a project directory. Towards the end of the logs, "initialize runtime from auto-detect: Node.js" appears which seems to be right for this project you're cloning. I'm not sure why a failed check for the "check-update" hook is happening and will check on this soon.
The command being attempted for installs is:
$ npm install --no-package-lock --no-audit --prefer-offline --progress=false --loglevel=verbose .
I'd be interested in knowing if this command doesn't work while npm install
does? Maybe one of these flags is changing something?
I'm also interested if this could be caused by caching strangeness?
Let's leave the issue open to track updates or more discoveries around this! Thank you again sharing :pray:
👋 Going to close this for now since next steps aren't immediately obvious, but willing to revisit it whenever!
As a note, v2.25.0
of the Slack CLI outputs detailed installation information of dependencies to the debug logs and with the --verbose
flag which can be helpful in troubleshooting. If you run into this error again it'd be great to share those logs!
When executing the command
slack create -t slack-samples/bolt-python-custom-function-template my-app
the script exists with Error code 1. Following this,slack run
will fail due to missing dependencies.manually running
npm install
will then allowslack run
to function as expected.