一. 安装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_modules/zmq/build/zmq.node→ /usr/local/lib/node_modules/stf/node_modules/zmq/build/Debug/zmq.node→ /usr/local/lib/node_modules/stf/node_modules/zmq/build/Release/zmq.node→ /usr/local/lib/node_modules/stf/node_modules/zmq/out/Debug/zmq.node→ /usr/local/lib/node_modules/stf/node_modules/zmq/Debug/zmq.node→ /usr/local/lib/node_modules/stf/node_modules/zmq/out/Release/zmq.node→ /usr/local/lib/node_modules/stf/node_modules/zmq/Release/zmq.node→ /usr/local/lib/node_modules/stf/node_modules/zmq/build/default/zmq.node→ /usr/local/lib/node_modules/stf/node_modules/zmq/compiled/6.10.1/darwin/x64/zmq.nodeat bindings (/usr/local/lib/node_modules/stf/node_modules/bindings/bindings.js:88:9)at Object. (/usr/local/lib/node_modules/stf/node_modules/zmq/lib/index.js:6:30)
解决办法:
(1) 卸载stf,重新安装zeromq、stf
三. 之前安装的相关软件版本过低
解决办法:
(1) 根据提示更新软件版本
四. 连接手机时提示:
Setup had an error Error: Cannot find module '/usr/local/lib/node_modules/stf/node_modules/_jpeg-turbo@0.4.0@jpeg-turbo/lib/binding/node-v57-linux-x64/jpegturbo.node'
解决办法:
(1) 卸载stf,重新安装yasm、stf,这里一定要注意先后顺序,要不会失败
来源:CSDN
作者:KingOfOnePiece
链接:https://blog.csdn.net/KingOfOnePiece/article/details/82216492