简体   繁体   中英

npm start err from react


** 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 [

我有同样的问题,它已解决

yarn upgrade docusaurus --latest

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.

$ rm yarn.lock
$ yarn install
$ yarn start

Some errors in the website (eg, 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM