react 常用命令

来源:互联网 发布:linux alsa声卡驱动 编辑:程序博客网 时间:2024/05/23 10:30
  • 安装包  npm install
  • 终端启动 ios 的命令:   react-native run-ios
  • 终端启动 android 的命令:   react-native run-android
  • chrome里面进入调试  option + command + j
  • 项目内安装 npm i somename --save
  • 全局安装 npm i somename --g   
  • 查看 react-native 版本  npm info react-native
  • 更新最新版本  npm install --save react-native@VersionCode
  • 更新文档 https://facebook.github.io/react-native/docs/upgrading.html
  • 查看npm 环境  npm config list
0 0
原创粉丝点击