更新时间:2022-11-05 15:23:00
node-waf
已替换为 node-gyp
使用以下命令安装 node-gyp:sudo npm install -g node-gyp
Install node-gyp using:
sudo npm install -g node-gyp
注意:要使用 node-gyp 构建,需要配置文件 binding.gyp
.示例:
Note: To build with node-gyp the configuration file binding.gyp
is required.
Example:
{
"targets": [
{
"target_name": "binding",
"sources": [ "src/binding.cc" ]
}
]
}