我正在研究这个问题.
现在我正在尝试使用getmac
用node.js获取当前机器的mac地址
我按照安装说明进行操作.但是当我运行这段代码时:
require('getmac').getMac(function(err,macAddress){
if (err) throw err;
console.log(macAddress);
});
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
错误:命令失败:找不到命令"getmac"
你知道如何让这个工作吗?