1、本地打开git bash
在git中输入:
git clone https://github.com/facebook/react-devtools.git
若超时,换国内地址
git clone https://gitee.com/mirrors/react-devtools.git
2、克隆完成后在根目录运行
npm install
3、安装依赖完成以后切换目录到 shells/chrome
cd shells/chrome
4、运行node build.js
当前目录下会生成build目录 这个build目录下的unpacked目录就是chrome中所需react-devtools的工具扩展程序包
chrome安装react-devtools
最新推荐文章于 2025-05-17 22:28:54 发布