大佬教程收集整理的这篇文章主要介绍了安装create-react-app my-first-react-app后,npm start脚本立即返回错误,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
cd
进入(或更改为)项目的目录。
@H_772_2@假设您已在目录中初始化了项目C:\Users\DavID
并指定了项目名称@H_872_3@my-app,只需键入cd my-app
(或者确切地说是cd
C:\Users\DavID\my-app\
在“命令提示符”中键入然后运行)即可npm start
。
@H_772_2@错误消息所抱怨的文件package.Json
,已经在项目文件夹中可用。
@H_772_2@ 安装create-react-app
并初始化新应用不是推荐的新方法。
@H_772_2@根据React文档,卸载create-
react-app
全局npm软件包,并按照以下步骤创建一个新的React应用程序:
npx create-react-app my-app
cd my-app
npm start
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory,open 'C:\Users\David\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\David\ApPDAta\roaR_257_11845@ing\npm-cache\_logs\2019-12-28T21_32_24_438Z-debug.log```
以上是大佬教程为你收集整理的安装create-react-app my-first-react-app后,npm start脚本立即返回错误全部内容,希望文章能够帮你解决安装create-react-app my-first-react-app后,npm start脚本立即返回错误所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。