question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi there!

The readme says to run npx init mdx. I’m not sure if I’m missing some prereqs or not, but that didn’t work for me (got npx: command not found: init). npm init mdx did work though.

Here’s the line:

https://github.com/mdx-js/mdx/blob/cafd5766b8263fcfa6c6c9d497b1c5014f1ba8fd/readme.md#L63

I’ll submit a PR if it’s a typo, and if it isn’t and there’s some prereqs involved, I don’t mind submitting a pull request explaining what’s needed.

Edit: Oh I guess it should be npx create-mdx or yarn create mdx?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
baurinecommented, Dec 12, 2018

got it now, thank you @johno !

0reactions
johnocommented, Dec 12, 2018

npm init requires npm v6+. We’ll be updating the docs over the holidays to make the npm init flow less front and center since it can be a source of confusion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm-init
The init command is transformed to a corresponding npx operation as follows: npm init foo -> npx create-foo; npm init @usr/foo -> npx...
Read more >
npx start, npx install npx init is not working - Stack Overflow
I have been working with react for years using NPX and yarn and I just got assign to built an ...
Read more >
Initialising projects with NPX. React Native has seen ... - Medium
NPX can initiate a build using a tool like e.g. React Native CLI without prior necessity for global ... npx react-native init <project_name>....
Read more >
Create a New React App
Create React App is a comfortable environment for learning React, and is the best way to start building a new single-page application in...
Read more >
Ubuntu Manpage: npm-init - create a package.json file
npm-init - create a package.json file Synopsis npm init [--force|-f|--yes|-y|--scope] npm init <@scope> (same as `npx <@scope>/create`) npm init ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found