Code Monkey home page Code Monkey logo

Comments (7)

lmammino avatar lmammino commented on August 16, 2024 1

Try to update your version of node to (at least) version 14

from jwt-cracker.

Tr4pSec avatar Tr4pSec commented on August 16, 2024 1

updated to version 18.
Running

sudo jwt-cracker "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmbGFnIjoiQlRMe180X0V5ZXN9IiwiaWF0Ijo5MDAwMDAwMCwibmFtZSI6IkdyZWF0RXhwIiwiYWRtaW4iOnRydWV9.jbkZHll_W17BOALT95JQ17glHBj9nY-oWhT1uiahtv8"

Throws a lot of erros

node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module '/home/max/process-chunk.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.12.1
node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module '/home/max/process-chunk.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.12.1
node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module '/home/max/process-chunk.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.12.1
node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module '/home/max/process-chunk.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.12.1
node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module '/home/max/process-chunk.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.12.1
node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module '/home/max/process-chunk.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

from jwt-cracker.

lmammino avatar lmammino commented on August 16, 2024 1

@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!

from jwt-cracker.

Ldarm avatar Ldarm commented on August 16, 2024

Same error for me

It searchs the file 'process-chunk.js" where you run jwt-cracker

from jwt-cracker.

lmammino avatar lmammino commented on August 16, 2024

@Ldarm @Tr4pSec I just drafted a new release (2.1.0) that should solve this problem. Please let me know if it persists!

from jwt-cracker.

Deykun avatar Deykun commented on August 16, 2024

I have 2.1.0 installed and unfortunately, it still exists.

Node.js v18.7.0
node:internal/modules/cjs/loader:959
  throw err;
  ^

Error: Cannot find module 'C:\C:\Users\stdey\AppData\Roaming\nvm\v18.7.0\node_modules\jwt-cracker\process-chunk.js'
←[90m    at Module._resolveFilename (node:internal/modules/cjs/loader:956:15)←[39m
←[90m    at Module._load (node:internal/modules/cjs/loader:804:27)←[39m
←[90m    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)←[39m
←[90m    at node:internal/main/run_main_module:17:47←[39m {
  code: ←[32m'MODULE_NOT_FOUND'←[39m,
  requireStack: []
}

from jwt-cracker.

lmammino avatar lmammino commented on August 16, 2024

@Deykun thanks a lot for reporting this.

This seems a slightly different one.

It is now looking into the right place (-ish) as it's looking inside the jwt-cracker project folder (rather than the current working directory) for process-chunk.js.

Still, it's really weird that repeated C:\C:\ at the beginning of your path...

Let me investigate if there's some issue with path in Node.js

from jwt-cracker.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.