美文网首页
2019-07-15

2019-07-15

作者: yttcat | 来源:发表于2019-07-15 23:19 被阅读0次

    安装依赖


    yarn add插件名

    区别

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

    yarn remove <package...>

    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

          本文链接:https://www.haomeiwen.com/subject/xmrakctx.html