isaacs / isexe

Minimal module to check if a file is executable.
ISC License
48 stars 17 forks source link

Error: Cannot find module, Need Help ! #29

Open rdcodevilas opened 1 year ago

rdcodevilas commented 1 year ago

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

Error: Cannot find module 'C:\Users\Administrator\Downloads\react-vscode-portfolio-main\node_modules\isexe\index.js'. Please verify that the package.json has a valid "main" entry at tryPackage (node:internal/modules/cjs/loader:400:19) at Module._findPath (node:internal/modules/cjs/loader:613:18) at Module._resolveFilename (node:internal/modules/cjs/loader:981:27) at Module._load (node:internal/modules/cjs/loader:841:27) at Module.require (node:internal/modules/cjs/loader:1061:19) at require (node:internal/modules/cjs/helpers:103:18) at Object. (C:\Users\Administrator\Downloads\react-vscode-portfolio-main\node_modules\which\which.js:7:15) at Module._compile (node:internal/modules/cjs/loader:1159:14) at Module._extensions..js (node:internal/modules/cjs/loader:1213:10) at Module.load (node:internal/modules/cjs/loader:1037:32) { code: 'MODULE_NOT_FOUND', path: 'C:\Users\Administrator\Downloads\react-vscode-portfolio-main\node_modules\isexe\package.json', requestPath: 'isexe' }

graemedewe commented 1 year ago

same issue , anyone have a resolution

noahbald commented 1 year ago

I tried running the following and it seemed to help for me

npm cache clean --force
npm ci
Ben-JClark commented 3 months ago

I fixed this issue by deleting node_modules and package-lock.json