Closed climba03003 closed 1 year ago
It seems an old yarn known issue: https://github.com/yarnpkg/yarn/issues/5353#issuecomment-399381322
Created a PR. We could fix this with npx if we create a package, e.g. called fastify-secure-sesion-generate-key
Just as a remark: In the issue is written that npx @fastify/secure-session fails, but it is actually working with npx
I updated the description a bit.
The prerequisite is using yarn
as package manager.
Once you use it, it will also fail the npx
command.
Thanks for the clarification
My suggestion is to update the documentation to refer to the binary by path, rather than exclude everyone who uses Yarn (a lot of people):
./node_modules/@fastify/secure-session/genkey.js > secret_key
Prerequisites
Last working version
4.1.0
Stopped working in version
4.1.1
Node.js version
18.x
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
20.04
💥 Regression Report
yarn
do not put thebin
file inside.bin
folder. So, it is unavailable to use eitheryarn
ornpx
to executegenkey.js
when you useyarn
as package manager.I don't know if it is expected behavior for
yarn
. Some related information is thatyarn
only consider/^(?!\.{0,2}$)[a-z0-9._-]+$/i
as validbin
.Steps to Reproduce
Expected Behavior
No response