Skip to content
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

npx remark stopped working #1325

Closed
4 tasks done
Xunnamius opened this issue May 7, 2024 · 7 comments
Closed
4 tasks done

npx remark stopped working #1325

Xunnamius opened this issue May 7, 2024 · 7 comments
Labels
🙋 no/question This does not need any changes 👎 phase/no Post cannot or will not be acted on

Comments

@Xunnamius
Copy link
Contributor

Xunnamius commented May 7, 2024

As of ~4 days ago, invoking remark via npx remark in my pipelines seems to have stopped working. Given the timing, it may have to do with the latest releases of the remark and remark-cli packages.

Initial checklist

Affected packages and versions

remark: 15.0.1, remark-cli: 12.0.1

Steps to reproduce

  1. Run npx remark --help in a terminal with npx in the path.

Expected behavior

Should run remark CLI like normal.

Actual behavior

npm ERR! could not determine executable to run

Runtime

Node v21.7.3

Package manager

NPM 10.5.0

OS

Linux (Ubuntu)

Build and bundle tools

N/A

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels May 7, 2024
@wooorm
Copy link
Member

wooorm commented May 7, 2024

I can’t imagine something happening 4 days ago? There was a CLI release 7 days ago?
This is also around the time of Node 22 coming out, with a new npm probably?

@wooorm
Copy link
Member

wooorm commented May 7, 2024

Wait, has this ever worked? Because you always had to install remark-cli, and then use it as the command remark?

npx --package remark-cli -- remark --help

Perhaps npx worked before when you already had remark-cli installed locally, and thus had the remark command?

@wooorm wooorm added the 🙉 open/needs-info This needs some more info label May 7, 2024

This comment has been minimized.

@Xunnamius
Copy link
Contributor Author

Looking at a handful of my other remark-powered projects, they do have remark-cli installed locally as you describe, and this newer project does not.

The strange thing is, everything was working fine until I updated deps last Friday. Perhaps remark-cli was a transitive dep of some deeper package that dropped it after I updated, which would explain why this didn't break here earlier. Either way, installing remark-cli (or just doing npx remark-cli) returned everything to working order, so this likely isn't your problem and we can close this issue.

Thanks for the quick reply and apologies for the time sink!

@ChristianMurphy ChristianMurphy added 🙋 no/question This does not need any changes and removed 🙉 open/needs-info This needs some more info labels May 8, 2024
@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label May 8, 2024

This comment has been minimized.

Copy link

github-actions bot commented May 8, 2024

Hi! Thanks for reaching out! Because we treat issues as our backlog, we close issues that are questions since they don’t represent a task to be completed.

See our support docs for how and where to ask questions.

Thanks,
— bb

@github-actions github-actions bot added the 👎 phase/no Post cannot or will not be acted on label May 8, 2024
@github-actions github-actions bot closed this as completed May 8, 2024
@wooorm
Copy link
Member

wooorm commented May 8, 2024

No worries!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 no/question This does not need any changes 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

3 participants