Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot Find RequestPath Module isexe

I am running npm run test:CI (jest-html-reporter) in Bamboo CI but this error occurred:

> node:internal/modules/cjs/loader:361
throw err;
^
Error: Cannot find module 'C:\...\node_modules\isexe\index.js'. 
Please verify that the package.json has a valid "main" entry

path: '...node_modules\\isexe\\package.json',
requestPath: 'isexe'
code: 'MODULE_NOT_FOUND'

The main in my package.json is set to 'dist/index.js'

What is this error and how can I resolve it?

like image 417
worrier Avatar asked Oct 31 '25 00:10

worrier


1 Answers

Can you try to clean the cache:

npm cache clean

If it doesn't work try:

npm cache clean --force

Also, I cannot see your folder structure, but I think the route is: './dist/index.js', not 'dist/index.js'.

like image 101
Alen Vlahovljak Avatar answered Nov 02 '25 15:11

Alen Vlahovljak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!