You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
Hi, I think that the deployment process of the @secrethub/cli npm-package may has a bug:
$ npx @secrethub/cli
npx: command not found: cli
Up until now, I used yarn1 and downloaded @secrethub/cli to the project. I couldn't run it like: yarn secrethub because of the bug above, so as a workaround, I specified the full path from the node_modules: yarn node_modules/.bin/secrethub. All good.
After moving to yarn2 as a package-manager, I don't have node_modules anymore, so I must do one of the following:
yarn secrethub - throw an error. it maybe related to the error above with npx.
yarn dlx @secrethub/cli - same error as npx.
npx @secrethub/cli - as you saw above.
Workaround: is to install secrethub from other package-manager: apk/apt-get
More info:
This is the package.json of @secrethub/cli (which I couldn't find in your organization. I found it in the node_modules when using yarn1)
I tried running npx @secrethub/cli using Node v14 / NPX v6 and I'm getting the same error you got.
However, when upgrading to Node v15 / NPX v7 it seems to work fine. I can run npx @secrethub/cli --version for example and it downloads the CLI and prints the SecretHub version.
I don't know exactly what they changed between these versions to make it work, but it does the trick. Could you try that?
I'll look to see if there's anything we can do to support NPX on earlier versions too.
Hi, I think that the deployment process of the @secrethub/cli npm-package may has a bug:
Up until now, I used yarn1 and downloaded @secrethub/cli to the project. I couldn't run it like:
yarn secrethub
because of the bug above, so as a workaround, I specified the full path from the node_modules:yarn node_modules/.bin/secrethub
. All good.After moving to yarn2 as a package-manager, I don't have node_modules anymore, so I must do one of the following:
yarn secrethub
- throw an error. it maybe related to the error above with npx.yarn dlx @secrethub/cli
- same error as npx.npx @secrethub/cli
- as you saw above.Workaround: is to install secrethub from other package-manager: apk/apt-get
More info:
This is the package.json of @secrethub/cli (which I couldn't find in your organization. I found it in the node_modules when using yarn1)
Something maybe wrong in
./bin/secrethub
.The text was updated successfully, but these errors were encountered: