简体   繁体   English

npm启动错误-无法创建本地服务器

[英]npm start ERROR - can't create local server

I am learning React, I created react app, i typed cd davidsapp, but when I run npm install i get warnings and errors, and when I input npm start, I get all the errors posted in this link. 我正在学习React,创建了react应用,输入了cd davidsapp,但是当我运行npm install时,我会收到警告和错误,而当我输入npm start时,我会收到此链接中发布的所有错误。 What can I do? 我能做什么?

https://gist.github.com/DavidRNogueira/da37a599c37ad8661c55bf599b7e0751 https://gist.github.com/DavidRNogueira/da37a599c37ad8661c55bf599b7e0751

and here is my package.json: 这是我的package.json:

https://gist.github.com/DavidRNogueira/e9b2cfd67e1d9aa04c0c8af2762d08a2 https://gist.github.com/DavidRNogueira/e9b2cfd67e1d9aa04c0c8af2762d08a2

You may not need to execute npm install if you use the recommended way of creating new React Apps (ie using Create React App). 如果使用推荐的方式创建新的React Apps(即使用Create React App),则可能不需要执行npm install As per this document - https://reactjs.org/docs/create-a-new-react-app.html#create-react-app , the command npx create-react-app davidsapp should handle the installation so that you can get started with either yarn start or npm start depending on the option you choose. 按照这份文件- https://reactjs.org/docs/create-a-new-react-app.html#create-react-app ,命令npx create-react-app davidsapp应该处理的安装,这样就可以根据选择的选项开始使用yarn startnpm start

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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