[英]Where are the packages in init react-app?
npm init react-app my-app
命令将许多软件包导入到项目中,但是为什么该依赖项不在package.json
?
The dependencies are in the package.json
of react-scripts
which your project will depend on when initializing it. 依赖项位于
react-scripts
的package.json
中,您的项目在初始化时将依赖该依赖项。 The only dependency of your project will be react-scripts
. 您项目的唯一依赖项是
react-scripts
。
If you want to manage these yourself you need to eject your project. 如果要自己管理这些,则需要退出项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.