【发布时间】:2016-03-15 19:43:21
【问题描述】:
$ sudo npm install -g strongloop
> heapdump@0.3.7 安装 /usr/lib/node_modules/strongloop/node_modules/heapdump
>> 节点-gyp 重建
吉普错误!配置错误
吉普错误!堆栈错误:找不到 Python 可执行文件“/path/to/python”,您可以设置 PYTHON 环境变量。
吉普错误!堆栈在 failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:401:14)
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:330:11
吉普错误!堆栈在 F (/usr/lib/node_modules/npm/node_modules/which/which.js:63:16)
吉普错误!堆栈在 E (/usr/lib/node_modules/npm/node_modules/which/which.js:72:29)
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/which.js:81:16
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
堆栈在 /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
吉普错误!堆栈在 FSReqWrap.oncomplete (fs.js:82:15)
吉普错误!系统 Linux 3.13.0-48-generic
吉普错误!命令“/usr/bin/nodejs”“/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js”“重建”
吉普错误! cwd /usr/lib/node_modules/strongloop/node_modules/heapdump
吉普错误!节点-v v4.4.0
吉普错误!节点gyp -v v3.3.0
吉普错误!不好
npm WARN 可选 dep 失败,继续 heapdump@0.3.7
> spawn-sync@1.0.15 安装后 /usr/lib/node_modules/strongloop/node_modules/spawn-sync
> 节点后安装
> bufferutil@1.2.1 安装/usr/lib/node_modules/strongloop/node_modules/bufferutil
>> 节点-gyp 重建
吉普错误!配置错误
吉普错误!堆栈错误:找不到 Python 可执行文件“/path/to/python”,您可以设置 PYTHON 环境变量。
吉普错误!堆栈在 failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:401:14)
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:330:11
吉普错误!堆栈在 F (/usr/lib/node_modules/npm/node_modules/which/which.js:63:16)
吉普错误!堆栈在 E (/usr/lib/node_modules/npm/node_modules/which/which.js:72:29)
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/which.js:81:16
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
吉普错误!堆栈在 FSReqWrap.oncomplete (fs.js:82:15)
吉普错误!系统 Linux 3.13.0-48-generic
吉普错误!命令“/usr/bin/nodejs”“/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js”“重建”
吉普错误! cwd /usr/lib/node_modules/strongloop/node_modules/bufferutil
吉普错误!节点-v v4.4.0
吉普错误!节点gyp -v v3.3.0
吉普错误!不好
> utf-8-validate@1.2.1 安装 /usr/lib/node_modules/strongloop/node_modules/utf-8-validate
>> 节点-gyp 重建
吉普错误!配置错误
吉普错误!堆栈错误:找不到 Python 可执行文件“/path/to/python”,您可以设置 PYTHON 环境变量。
吉普错误!堆栈在 failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:401:14)
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:330:11
吉普错误!堆栈在 F (/usr/lib/node_modules/npm/node_modules/which/which.js:63:16)
吉普错误!堆栈在 E (/usr/lib/node_modules/npm/node_modules/which/which.js:72:29)
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/which.js:81:16
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
吉普错误!堆栈在 FSReqWrap.oncomplete (fs.js:82:15)
吉普错误!系统 Linux 3.13.0-48-generic
吉普错误!命令“/usr/bin/nodejs”“/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js”“重建”
吉普错误! cwd /usr/lib/node_modules/strongloop/node_modules/utf-8-validate
吉普错误!节点-v v4.4.0
吉普错误!节点gyp -v v3.3.0
吉普错误!不好
npm WARN 可选 dep 失败,继续 bufferutil@1.2.1
> 现代-syslog@1.1.2 安装 /usr/lib/node_modules/strongloop/node_modules/modern-syslog
>> 节点-gyp 重建
吉普错误!配置错误
吉普错误!堆栈错误:找不到 Python 可执行文件“/path/to/python”,您可以设置 PYTHON 环境变量。
吉普错误!堆栈在 failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:401:14)
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:330:11
吉普错误!堆栈在 F (/usr/lib/node_modules/npm/node_modules/which/which.js:63:16)
吉普错误!堆栈在 E (/usr/lib/node_modules/npm/node_modules/which/which.js:72:29)
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/which.js:81:16
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
吉普错误!堆栈在 FSReqWrap.oncomplete (fs.js:82:15)
吉普错误!系统 Linux 3.13.0-48-generic
吉普错误!命令“/usr/bin/nodejs”“/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js”“重建”
吉普错误! cwd /usr/lib/node_modules/strongloop/node_modules/modern-syslog
吉普错误!节点-v v4.4.0
吉普错误!节点gyp -v v3.3.0
吉普错误!不好
npm WARN 可选 dep 失败,继续 utf-8-validate@1.2.1
npm WARN 可选 dep 失败,继续modern-syslog@1.1.2
> strong-debugger@1.0.0 安装 /usr/lib/node_modules/strongloop/node_modules/strong-debugger
>> 节点-gyp 重建
吉普错误!配置错误
吉普错误!堆栈错误:找不到 Python 可执行文件“/path/to/python”,您可以设置 PYTHON 环境变量。
吉普错误!堆栈在 failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:401:14)
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:330:11
吉普错误!堆栈在 F (/usr/lib/node_modules/npm/node_modules/which/which.js:63:16)
吉普错误!堆栈在 E (/usr/lib/node_modules/npm/node_modules/which/which.js:72:29)
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/which.js:81:16
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
吉普错误!堆栈在 FSReqWrap.oncomplete (fs.js:82:15)
吉普错误!系统 Linux 3.13.0-48-generic
吉普错误!命令“/usr/bin/nodejs”“/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js”“重建”
吉普错误! cwd /usr/lib/node_modules/strongloop/node_modules/strong-debugger
吉普错误!节点-v v4.4.0
吉普错误!节点gyp -v v3.3.0
吉普错误!不好
> strong-agent@2.0.2 安装 /usr/lib/node_modules/strongloop/node_modules/strong-agent
> 节点-gyp 重建 ||出口 0
吉普错误!配置错误
吉普错误!堆栈错误:找不到 Python 可执行文件“/path/to/python”,您可以设置 PYTHON 环境变量。
吉普错误!堆栈在 failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:401:14)
在 /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:330:11
吉普错误!堆栈在 F (/usr/lib/node_modules/npm/node_modules/which/which.js:63:16)
吉普错误!堆栈在 E (/usr/lib/node_modules/npm/node_modules/which/which.js:72:29)
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/which.js:81:16
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
吉普错误!堆栈在 /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
吉普错误!堆栈在 FSReqWrap.oncomplete (fs.js:82:15)
吉普错误!系统 Linux 3.13.0-48-generic
吉普错误!命令“/usr/bin/nodejs”“/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js”“重建”
吉普错误! cwd /usr/lib/node_modules/strongloop/node_modules/strong-agent
吉普错误!节点-v v4.4.0
吉普错误!节点gyp -v v3.3.0
吉普错误!不好
npm WARN 可选 dep 失败,继续 strong-debugger@1.0.0
npm WARN deprecated graceful-fs@3.0.8:graceful-fs 版本 3 及之前的版本将在较新的节点版本上失败。请尽快更新到graceful-fs@^4.0.0。
> ws@0.4.32 安装 /usr/lib/node_modules/strongloop/node_modules/node-inspector/node_modules/ws
> (node-gyp 重建 2> builderror.log) || (0号出口)
> sqlite3@3.1.1 安装 /usr/lib/node_modules/strongloop/node_modules/sqlite3
> node-pre-gyp 安装--fallback-to-build
【问题讨论】:
-
"gyp ERR!配置错误 gyp ERR!堆栈错误:找不到 Python 可执行文件“/path/to/python”,您可以设置 PYTHON 环境变量。”这个错误信息对我来说似乎很清楚。请注意,使用 node-gyp 构建包需要 python 2.*。
-
您已在问题中发布答案
标签: node.js ubuntu strongloop