[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.
调用“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.
相关文章推荐
- nodejs gyp WARN EACCES user "root" does not have permission to access the dev dir
- node.js开发错误——Error: Connection strategy not found
- Error: Program "C:\android\android-ndk-r10\ndk-build.cmd" not found in PATH
- Error: Program "/ndk-build.cmd" is not found in PATH
- nodejs error getaddrinfo ENOTFOUND in dns.js
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- Eclipse错误:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- myeclipse报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- PRVF-7593 : CRS is not found to be installed on node "rac2"
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- Error:Program "sh" not found in PATH
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JSP报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path