jwt-cracker: Error when running jwt-cracker
Running:
sudo jwt-cracker eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmbGFnIjoiQlRMe180X0V5ZXN9IiwiaWF0Ijo5MDAwMDAwMCwibmFtZSI6IkdyZWF0RXhwIiwiYWRtaW4iOnRydWV9.jbkZHll_W17BOALT95JQ17glHBj9nY-oWhT1uiahtv8 6
Getting:
file:///usr/local/lib/node_modules/jwt-cracker/index.js:7
const pkg = JSON.parse(await readFile(new URL('./package.json', import.meta.url)))
^^^^^
SyntaxError: Unexpected reserved word
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 1
- Comments: 132 (4 by maintainers)
@Deykun v 2.2.0 is being published right now and it should address this problem. I don’t use windows, so please let me know if the problem persists for you.
Thanks again!
updated to version 18. Running
Throws a lot of erros
Try to update your version of node to (at least) version 14