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.

James Z
  • 12,209
  • 10
  • 24
  • 44
bensnjo
  • 21
  • 2

1 Answers1

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.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250