Mac安装stf踩坑
一. 安装stf环节,一直死循环提示: gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/local/lib/node_modules/stf/node_modules/zmq/.node-gyp/8.1.2"gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/stf/node_modules/zmq/.node-gyp" 解决办法: (1)sudo chmod -R 777 /var/root (2)如果上面1步骤仍然不行,可能是由于苹果SIP造成,可以按照如下进行操作: 1.重启 Mac,按住 Command+R 键直到 Apple logo 出现,进入 Recovery Mode 2.点击 Utilities > Terminal 3.在 Terminal 中输入 csrutil disable,之后回车 4.重启 Mac 二. stf doctor时提示: Error: Could not locate the bindings file. Tried:→ /usr/local/lib/node_modules/stf/node