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.

Add `npm install` after npx @docusaurus/init@latest init my-website classic

See original GitHub issue

📚 Documentation

Beginners like me could run into problems like if we do not do npm install and move to npm run start it will give error.

Have you read the Contributing Guidelines on issues?

Yes

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20

github_iconTop GitHub Comments

2reactions
antonmedvcommented, Sep 2, 2021

When I added FORCE_COLOR I worried a bit whether that would lead to ANSI colors applied being to places where it shouldn’t

Yes, better to check, for example via https://github.com/chalk/supports-color, before setting it. (Actually nice idea, will think of implementing it in zx)

And yes, spawn with inherited stdio should work.

0reactions
Josh-Cenacommented, Sep 2, 2021

The spawn has an option stdio which can be inherit or piped. Only in inherited stdout mode subprocess detects what colors are supported (as stdout is TTY). But not in piped.

That’s what CRA is using. So is my understanding correct that only by setting stdio: 'inherit' (and using spawn, of course) can we return back the control of coloring to the subprocess itself, instead of forcing coloring the output with environment / options? When I added FORCE_COLOR I worried a bit whether that would lead to ANSI colors being applied to places where it shouldn’t

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I correctly scaffold a new Docusaurus website?
Details about the issue are here. A workaround would be to use @latest as in npx @docusaurus/init@latest init my-website classic.
Read more >
Brand new docusaurus installation not building #5287 - GitHub
Just created a new docusaurus installation following the getting started guide ... npx @docusaurus/init@latest init my-website classic ...
Read more >
npm-install - npm Docs
This command installs a package and any packages that it depends on. If the package has a package-lock, or an npm shrinkwrap file,...
Read more >
Installation - Docusaurus
How to install Docusaurus locally, and start a Docusaurus site in no time.
Read more >
yarn install
Important: This documentation covers Yarn 1 (Classic). For Yarn 2+ docs and migration guide, see yarnpkg.com.
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