Skip to content

Error: Failed to list installed modules even if ignored #106

Open
@felipecrs

Description

@felipecrs

Hi,

Firstly, thank you very much for the tool. It has proven very useful to me for many times.

I am trying to override a broken dependency (microsoft/vscode-vsce#1107):

{
  "overrides": {
    "@vscode/vsce-sign": "./see_vsce_issue_1107"
  }
}

But installed-check will always fail with:

Unexpected error: Failed to list installed modules: ENOENT: no such file or directory, stat '/home/felipecrs/repos/vscode-shellcheck/node_modules/@vscode/vsce-sign'

Error: Failed to list installed modules
    at file:///home/felipecrs/repos/vscode-shellcheck/node_modules/list-installed/lib/lookup.js:19:11
    at async installedLookup (file:///home/felipecrs/repos/vscode-shellcheck/node_modules/list-installed/lib/lookup.js:15:21)
    at async workspaceLookup (file:///home/felipecrs/repos/vscode-shellcheck/node_modules/list-installed/lib/lookup.js:54:23)
    at async installedCheck (file:///home/felipecrs/repos/vscode-shellcheck/node_modules/installed-check-core/lib/installed-check.js:35:20)
    at async file:///home/felipecrs/repos/vscode-shellcheck/node_modules/installed-check/cli.js:137:18
caused by: Error: ENOENT: no such file or directory, stat '/home/felipecrs/repos/vscode-shellcheck/node_modules/@vscode/vsce-sign'
    at async stat (node:internal/fs/promises:1032:18)
    at async file:///home/felipecrs/repos/vscode-shellcheck/node_modules/list-installed/lib/fs.js:27:28

Even if installed-check --ignore=@vscode/vsce-sign.

My workaround is to avoid calling installed-check for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions