0

** Visual Studio 2019 Developer Command Prompt v16.4.0 ** Copyright (c) 2019 Microsoft Corporation


C:\Users\asdf\Desktop\scratch3\create-react-app\docusaurus\website>npm start

@ start C:\Users\asdf\Desktop\scratch3\create-react-app\docusaurus\website docusaurus start

'docusaurus' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ start: docusaurus start npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\asdf\AppData\Roaming\npm-cache_logs\2019-12-25T05_50_44_042Z-debug.log

C:\Users\asdf\Desktop\scratch3\create-react-app\docusaurus\website>npm install [

3
  • What does it say inside C:\Users\asdf\AppData\Roaming\npm-cache_logs\2019-12-25T05_50_44_042Z-debug.log? Feels like you are not in the right directory or you've misspelled something Commented Dec 25, 2019 at 6:03
  • yeah the post change my typesetting,I want to start my react ,but npm start is err,that post is on package.json,start err Commented Dec 25, 2019 at 6:18
  • 1
    It seems docsaurus is missing. Is it in your package.json and did you run npm install? Commented Dec 25, 2019 at 7:48

3 Answers 3

4

I had the same issue it was resolved with

yarn upgrade docusaurus --latest
Sign up to request clarification or add additional context in comments.

Comments

1

I had the same issue while working on an open-source project. I just did upgrade docusaurus to the latest version yarn upgrade docusaurus --latest and did yarn audit fix

make sure you are in the right directory ex. project_name/src where the package.json file exists.

Comments

0
$ rm yarn.lock
$ yarn install
$ yarn start

Some errors in the website (e.g., missing page, incorrect syntax, and etc.) may cause this issue. You may force re-build, but the easiest workaround I found is to remove the lock and start over.

2 Comments

While this code may answer the question, providing additional context regarding why and/or how this code answers the question improves its long-term value.
Added some context.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.