您的位置:首页 > Web前端 > Node.js

[Tips]Fix node.js addon build error: "gyp: binding.gyp not found"

2013-08-14 19:45 1481 查看
基于node-gyp写Node.js native addon的时候,碰到一个很恶心的问题。

调用“node-gyp configure”能成功,再调用“node-gyp”时总会报错,最后发现时系统时间不对。

# Sympton

$ node-gyp configure

$ node-gyp build

make: Entering directory `/home/piaoger/Public/Piaoger/nodeaddon/build'
make: Warning: File `Release/.deps/./Release/nppluginproxy.node.d' has modification time 2.7e+06 s in the future
ACTION Regenerating Makefile
gyp: binding.gyp not found (cwd: /home/piaoger/Public/Piaoger/nodeaddon/build) while trying to load binding.gyp
make: *** [Makefile] Error 1

# Solution

Set correct system time.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐