megalinter icon indicating copy to clipboard operation
megalinter copied to clipboard

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension On Install

Open sebash1992 opened this issue 1 year ago • 2 comments

Describe the bug When Running the install command having an error that abort installation

To Reproduce Steps to reproduce the behavior:

  1. Go to you repository root directory
  2. run npx mega-linter-runner --install
  3. You will see the following error `C:\Users\Admin\AppData\Local\npm-cache_npx\614e542633a698fb\node_modules\mega-linter-runner\generators\mega-linter node:internal/errors:496 ErrorCaptureStackTrace(err); ^

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension "" for C:\Users\Admin at new NodeError (node:internal/errors:405:5) at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:79:11) at defaultGetFormat (node:internal/modules/esm/get_format:124:36) at defaultLoad (node:internal/modules/esm/load:84:20) at nextLoad (node:internal/modules/esm/loader:163:28) at ESMLoader.load (node:internal/modules/esm/loader:603:26) at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22) at new ModuleJob (node:internal/modules/esm/module_job:64:26) at #createModuleJob (node:internal/modules/esm/loader:480:17) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34) { code: 'ERR_UNKNOWN_FILE_EXTENSION' }

Node.js v18.17.1`

Expected behavior Installation start

Screenshots image

Additional context Run on windows 11 pro

sebash1992 avatar May 28 '24 17:05 sebash1992

@sebash1992 I just tried with node v18.18.2 and no issue :/

Please can you try to upgrade your node.js version and try again ?

nvuillam avatar May 28 '24 21:05 nvuillam

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 🤖 label or comment on the issue.

github-actions[bot] avatar Jun 28 '24 00:06 github-actions[bot]