2019-07-15

安装依赖


yarn add插件名

区别

yarn install //安装package.json里所有包,并将包及它的所有依赖项保存进yarn.lock

yarn remove

npm install插件名--save

npm uninstall插件名

react-native link          //链接插件依赖库

react-native link插件名//链接某个插件的依赖库

react-native unlink 插件名


删除node_modules文件夹: rm -rf node_modules && npm install

yarn cache clean //清除本地缓存




yarn install //安装package.json里所有包,并将包及它的所有依赖项保存进yarn.lock

你可能感兴趣的:(2019-07-15)