Pattern `**/*.md` does not includes paths like `source/_posts/foobar.md` while running the CLI via `npx`
See original GitHub issueI am working in a hexo
blog project, and I got
$ npx markdownlint-cli2 "**/*.md" "#node_modules"
markdownlint-cli2 v0.0.12 (markdownlint v0.22.0)
Finding: scaffolds/draft.md scaffolds/page.md scaffolds/post.md
Linting: 3 file(s)
Summary: 0 error(s)
which means **/*.md
does not includes paths like source/_posts/foobar.md
. However, it worked pretty well in the past few days. Is something going wrong?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Running npx globally does not work on Windows when the ...
The entire path needs to be in a string, but npx seems to be splitting it into two strings. This issue seems specific...
Read more >npx - npm Docs
This command allows you to run an arbitrary command from an npm package (either one installed locally, or fetched remotely), in a similar...
Read more >Introducing npx: an npm package runner | by Kat Marchán
npx is a tool intended to help round out the experience of using packages from the npm registry — the same way npm...
Read more >command not found while creating new project using angular ...
The issue is simple, npm doesn't know about ng. Just run npm link @angular/cli and it should work seamlessly.
Read more >How to build a CLI with Node.js - Twilio
In fact npx supports executing CLIs even when they are not installed yet. ... Now that we covered why you might want to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The “Finding” line shows that whatever tool/environment is running the command is expanding the glob instead of passing it to the CLI. Maybe try single quote or run the CLI directly if “npx” is responsible?
A couple of months passed, and I should note here that something has changed as far as I observed. npm 7.6.3 (or maybe some version behind) brings the previous behavior back, and a command like
npx markdownlint-cli2 "**/*.md" "#node_modules"
works now.