Skip to content

Error: Cannot find module #784

@skwde

Description

@skwde

Something similar is already mentioned here #744 / #750.

I now have commitlint installed via a conda installed node (inside a container). I can use it without issues on the command line.

Following modules are installed

(base) root@213d29790eb9:/workspaces/docs# npm list -g
/opt/conda/lib
├── @commitlint/[email protected]
├── @commitlint/[email protected]
├── [email protected]
└── [email protected]

I have following commitlint.config.js in my project directory:

module.exports = {
    extends: ['@commitlint/config-conventional'],
};

and following commitlint related VSCode settings

    "commitlint.log.enabled": true,
    "commitlint.globalLibraryPath": "/opt/conda/lib",
    "commitlint.globalNodePath": "/opt/conda/bin/node",

playing with globalLibraryPath or setting preferBundledLibraries to true does not help and lead to the same problem.

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