React-Native 库:如何知道在克隆 git 项目后添加哪个
React-Native Libraries: how to know which to add after cloning a git-project
从 Git 克隆 React Native 项目时,我如何知道要安装哪些库?
当我克隆一个项目时,InteliJ 做了一个 'npm install' 但没有安装 React Native 项目中使用的所有库,我如何才能快速找出使用了哪些库以及如何安装它们?
(我以为我应该能够在 package.json 中看到它,但在上一个项目中我找不到任何应该安装的库,例如 React Navigation)
感谢您回复或向我推荐正确的文档。
必须在 package.json 文件中指定在 React Native 项目上使用的每个库,更具体地说是在 "dependencies or "devDependencies 上。
Dependencies are specified in a simple object that maps a package name to a version range. The version range is a string which has one or more space-separated descriptors. Dependencies can also be identified with a tarball or git URL
如果在项目中使用了一些没有指定的lib,那是错误的。
从 Git 克隆 React Native 项目时,我如何知道要安装哪些库? 当我克隆一个项目时,InteliJ 做了一个 'npm install' 但没有安装 React Native 项目中使用的所有库,我如何才能快速找出使用了哪些库以及如何安装它们? (我以为我应该能够在 package.json 中看到它,但在上一个项目中我找不到任何应该安装的库,例如 React Navigation) 感谢您回复或向我推荐正确的文档。
必须在 package.json 文件中指定在 React Native 项目上使用的每个库,更具体地说是在 "dependencies or "devDependencies 上。
Dependencies are specified in a simple object that maps a package name to a version range. The version range is a string which has one or more space-separated descriptors. Dependencies can also be identified with a tarball or git URL
如果在项目中使用了一些没有指定的lib,那是错误的。