mac 安装vue-devtools
1.到到github下载vue tool 的压缩包
git clone -b add-remote-devtools https://github.com/vuejs/vue-devtools
2.进入vue-devtools目录 并安装依赖包
cd vue-devtools
npm install
3.编译
npm run build
若出现以下错误
Error: error:0308010C:digital envelope routines::unsupported
原因 node版本不兼容
解决方法 添加如下代码片段
export NODE_OPTIONS=--openssl-legacy-provider
4.谷歌浏览器–>设置–>拓展程序
打开“开发者模式”,点击“加载已解压的拓展程序”,选择vue-devtool中的chrome文件夹