bufferutil@1.2.1安装/home/sudthenerd/polymer-starter-kit-1.2.1/node_modules/bufferutil >节点- gyp重新构建gyp ERR!配置错误绞盘错误!堆栈错误:找不到Python可执行文件“/path/to/可执行文件/python2.7”,您可以设置python2.7变量。久尔!在(/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:401:14) failNoPython健身房堆叠!在/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:78:16)健身房堆放错误!在E (/usr/lib/node_modules/npm/node_modules/which/which.js:82:29)健身房堆放错误!在/usr/lib/node_modules/npm/node_modules/which/which.js:93:16健身房堆放错误!在FSReqWrap.oncomplete (fs.js:82:15)健身房堆放错误!SystemLinux3.13.0-74-泛型的gyp错误!命令"/usr/bin/nodejs“"/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js”“重新构建”gyp!cwd /home/sudthenerd/polymer-starter-kit-1.2.1/node_modules/bufferutil绞车!节点-v v5.3.0gyperr!节点- -v v3.2.1gyp错误!npm警告安装: bufferutil@1.2.1 bufferutil@1.2.1安装:
node-gyp rebuildnpm警告安装:bufferutil@1.2.1退出状态1>utf-8-验证@1.2.1安装/home/sudthenerd/polymer-starter-kit-1.2.1/node_modules/utf-8-validate > not重新构建gyp!配置错误绞盘错误!堆栈错误:找不到Python可执行文件"/path/to/ executable /python2.7",您可以设置python2.7变量。久尔!在(/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:401:14) failNoPython健身房堆叠!在/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:78:16)健身房堆放错误!在E (/usr/lib/node_modules/npm/node_modules/which/which.js:82:29)健身房堆放错误!在/usr/lib/node_modules/npm/node_modules/which/which.js:93:16健身房堆放错误!在FSReqWrap.oncomplete (fs.js:82:15)健身房堆放错误!SystemLinux3.13.0-74-泛型的gyp错误!命令"/usr/bin/nodejs“"/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js”“重新构建”gyp!cwd /home/sudthenerd/polymer-starter-kit-1.2.1/node_modules/utf-8-validate绞车!节点-v v5.3.0gyperr!节点- -v v3.2.1gyp错误!npm警告安装:utf-8-验证@1.2.1 utf-8-验证@1.2.1安装:node-gyp rebuildnpm警告安装:utf-8-验证@1.2.1退出状态1
发布于 2016-12-16 16:14:06
斯科特·弗里斯的解决方案不是对我有效,而是
npm config set python $(which python)
做。
发布于 2016-01-03 15:59:43
如果您使用包管理器安装Python,那么它应该已经在您的路径上了--但是如果不是:按如下方式添加它:
导出PATH="$PATH:/usr/local/bin/python (或安装python的任何地方)
Node需要2.x,不能使用Python3 (您安装了正确的版本吗?)
请参阅Running Python on Windows for Node.js dependencies for Windows,以确保设置了环境变量。
发布于 2020-09-08 17:24:03
通过将node-sass包升级到与我安装的Node版本兼容的版本,我解决了一个类似的错误。
node-sass发布了一个兼容性表,我在他们的NPM页面上找到了该表。
https://stackoverflow.com/questions/34570584
复制相似问题