• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
骑着小毛驴过冬的八阿哥
博客园    首页    新随笔    联系   管理    订阅  订阅

npm 安装React Devtools调试工具

有时候没有科学上网工具时,怎么安装React DevTool, 其一直接搜索到Chrome的插件安装即可.

其二, 可以通过下载github上的react-devtools, 然后打包,最后导入chrome中, 具体如下:

1. $ git clone https://github.com/facebook/react-devtools.git

2. 进入react-devtools目录: $ npm --registry https://registry.npm.taobao.org install   ,这里使用淘宝镜像, 过程需要点时间,耐心等待。

3. 打包: npm run build:extension:chrome   

4. 生成目录:react-devtools -> shells -> chrome -> build -> unpacked

5 . 打开chrome浏览器的扩展程序 , 找到 load unpacked,导入第4步的目录即可.

posted @ 2018-12-30 13:23  浅草马甲  阅读(1123)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3