2

I am using windows to bootstrap a Springboot backend using jhipster. I am running into the error below concerning Husky for git hooks.

> eims-back@0.0.0 prepare
> husky install

The system cannot find the path specified.
node:internal/modules/cjs/loader:1042
throw err;
^

Error: Cannot find module 'E:\husky\lib\bin.js'
   at Module._resolveFilename (node:internal/modules/cjs/loader:1039:15)
   at Module._load (node:internal/modules/cjs/loader:885: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.13.0
npm ERR! code 1
npm ERR! path E:\Software & Tutorials\Project source\EIMS_BE

How to I solve this?

I have searched online for that error but it seems new.

2
  • Try using Node 16.x as JHipster has currently some issues with latest 18.x Feb 12 at 13:58
  • Great...Lemmi try that asap!
    – bensnjo
    Feb 12 at 14:42

1 Answer 1

0

Check if this is similar to nodejs issue 3709, which includes some possible solution.

If, as commented, this is a NodeJS version, as seen here, follow the downgrade process.
JHipster is supposed to support node >=16.0.0 but maybe 18.x is too advanced.

1
  • Thanks...let me downgrade....will update
    – bensnjo
    Feb 12 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.