-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Cannot find module remark-preset-lint-recommended
#322
Comments
Welcome @nvuillam! 👋
Feel free to share a minimal reproducible example of the issue you are seeing, ideally in a sandbox. |
This comment has been minimized.
This comment has been minimized.
@ChristianMurphy remark-lint is disabled in MegaLinter since... July 2022, maybe you have a hint of a major change that happened at that time ? Maybe the way to find remark-preset-lint-recommended package if remarklink-cli is installed globally ? It is installed the following way (but not in the projet, in a MegaLinter docker image custom folder): Here is how to version is retrieved, and the result Linter version command: ['/node-deps/node_modules/.bin/remark', '--version']
Linter version result: 0 remark: 15.0.1, remark-cli: 12.0.0 |
A lot have happened.
This stands put to me, crossing folders to get at node modules could be messing with module resolution. Try using an |
So it’s neither installed globally, nor locally in the project. Instead, it is installed locally in another project. This is quite an edge case. I’m not really for or against this personally. MegaLinter is better off installing packages globally by passing the Regardless of all this, I strongly recommend to specify the major version of packages to install. |
If you install things somewhere, say, {
"plugins": [
"path/to/remark-whatever-package/index.js"
]
} Or, install things globally. |
This comment has been minimized.
This comment has been minimized.
Thanks for your responses :) |
Initial checklist
Affected packages and versions
v15.0.1
Link to runnable example
No response
Steps to reproduce
.remarkrc is the following
See MegaLinter failing job
https://github.com/oxsecurity/megalinter/actions/runs/8862094296/job/24334663734?pr=3516
It used to work in previous versions
Expected behavior
To work ^^
Actual behavior
The following error is triggered
Runtime
Node v17
Package manager
npm 8
OS
Linux
Build and bundle tools
Other (please specify in steps to reproduce)
The text was updated successfully, but these errors were encountered: