首页 文章

安装nodetime的编译错误

提问于
浏览
0

我正在尝试安装nodetime模块(用于节点),但是当我这样做时,我得到以下编译错误:

make:*** [Release / obj.target / nodetime_native / src / nodetime_native.o]错误1 make:离开目录/ home / fernando / node_modules / nodetime-native / build'gyp ERR!构建错误gyp ERR!堆栈错误:make`失败,退出代码:2 gyp ERR!堆栈在ChildProcess.onExit(/home/fernando/apps/node-v0.12.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)gyp ERR!在ChildProcess.emit堆栈(events.js:110:17)gyp ERR! Process.ChildProcess._handle.onexit(child_process.js:1074:12)gyp ERR! System Linux 3.13.0-53-generic gyp ERR!命令“node”“/ home /fernando /apps / node-v0.12.2 / lib / node_modules / npm / node_modules / node -gyp / bin / node -gyp.js”“rebuild”gyp ERR! cwd / home / fernando / node_modules / nodetime-native gyp ERR! node -v v0.12.2 gyp ERR! node-gyp -v v1.0.3 gyp ERR!不行npm ERR! Linux 3.13.0-53-generic npm ERR! argv“/ usr / local / bin / node”“/ usr / local / bin / npm”“i”“nodetime-native”npm ERR!节点v0.12.2 npm ERR! npm v2.7.4 npm ERR!代码ELIFECYCLE npm ERR! nodetime-native@0.1.0 install:node-gyp rebuild npm ERR!退出状态1 npm ERR!错误的ERR!在nodetime-native@0.1.0安装脚本'node-gyp rebuild'失败 . 错误的ERR!这很可能是nodetime-native软件包的问题,npm ERR!不是与npm本身 . 错误的ERR!告诉作者你的系统失败了:npm ERR! node-gyp rebuild npm ERR!您可以通过以下方式获取他们的信息:npm ERR! npm owner ls nodetime-native npm ERR!上面可能有额外的日志记录输出 .

环顾四周,似乎我需要安装Python,我做(2.7和3.4)和make和gcc,我这样做 . 还有什么可以在这里发生?

1 回答

  • 0

    您还需要确保通过PATH环境变量到达的Python可执行文件导致2.x版本 .

    我相信node-gyp与3.x版本的Python不兼容 .

相关问题