Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Windows\system32>npm install caress-server
npm http GET https://registry.npmjs.org/caress-server
npm http 304 https://registry.npmjs.org/caress-server
npm http GET https://registry.npmjs.org/jspack/0.0.1
npm http GET https://registry.npmjs.org/buffertools
npm http 304 https://registry.npmjs.org/jspack/0.0.1
npm http 304 https://registry.npmjs.org/buffertools
> buffertools@2.0.1 install C:\Windows\system32\node_modules\caress-server\node_
modules\buffertools
> node-gyp rebuild
C:\Windows\system32\node_modules\caress-server\node_modules\buffertools>node "G:
\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-
gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack at failNoPython (G:\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:101:14)
gyp …Run Code Online (Sandbox Code Playgroud) 我下载了Visual C++和Visual Studio,但我仍然找不到cl.exe来编译我的CPP文件.
路径为:C:\ Program Files(x86)\ Microsoft Visual Studio 14.0\VC\bin
我在哪里可以找到这个文件来编译C++代码?
我想运行这个项目:https : //github.com/adonis-china/adonis-adminify
当我运行时npm install,存在错误:
> sqlite3@3.1.13 install C:\laragon\www\adonis-admin\node_modules\sqlite3
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@10.15.0 (node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@10.15.0 (node-v64 ABI) (falling back to source compile with node-gyp)
gyp ERR! gypfind VS
gyp ERR!ERR! find VSfind VS
msvs_version not set from command …Run Code Online (Sandbox Code Playgroud) 突然在我的一个jenkins环境中构建已经开始失败,而在本地机器上它似乎工作正常,因为我安装了python,
从日志中我能够检测到问题是内部依赖,即来自node-sass v3.8.0的node-gyp v3.5.0,当我通过访问这个关于node- gyp的研究并发现需要安装Python的先决条件时.
所以我的问题是我可以安装什么版本的node-sass来绕过这个或者是否有更好的解决方案,因为我的构建在今天早上运行正常,在同一环境中.
节点v5.10.1
错误日志
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\Program Files (x86)\Jenkins\jobs\NdbSite-hot-fix-Manual-PreBuild\workspace\src\NdbSite.UI\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\Program Files (x86)\Jenkins\jobs\NdbSite-hot-fix-Manual-PreBuild\workspace\src\NdbSite.UI\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\Program Files (x86)\Jenkins\jobs\NdbSite-hot-fix-Manual-PreBuild\workspace\src\NdbSite.UI\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\Program Files (x86)\Jenkins\jobs\NdbSite-hot-fix-Manual-PreBuild\workspace\src\NdbSite.UI\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\Program Files (x86)\Jenkins\jobs\NdbSite-hot-fix-Manual-PreBuild\workspace\src\NdbSite.UI\node_modules\isexe\index.js:44:5
gyp verb `which` failed …Run Code Online (Sandbox Code Playgroud) bufferutil@1.2.1 install /home/sudthenerd/polymer-starter-kit-1.2.1/node_modules/bufferutil> node- gyp rebuild gyp ERR!配置错误gyp ERR!stack错误:找不到Python可执行文件"/path/to/executable/python2.7",可以设置PYTHON env变量.gyp ERR!在failNoPython堆栈(/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:401:14)gyp ERR!堆栈在/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:330:11 gyp ERR!堆栈在F(/usr/lib/node_modules/npm/node_modules/which/which.js:78:16)gyp ERR!堆栈在E(/usr/lib/node_modules/npm/node_modules/which/which.js:82:29)gyp ERR!堆栈在/usr/lib/node_modules/npm/node_modules/which/which.js:93:16 gyp ERR!堆栈在FSReqWrap.oncomplete(fs.js:82:15)gyp ERR!System Linux 3.13.0-74-generic gyp ERR!命令"/ usr/bin/nodejs""/ usr/lib/node_modules/npm/node_modules/node -gyp/bin/node -gyp.js""rebuild"gyp ERR!cwd /home/sudthenerd/polymer-starter-kit-1.2.1/node_modules/bufferutil gyp ERR!node -v v5.3.0 gyp ERR!node-gyp -v v3.2.1 gyp ERR!不行npm WARN安装:bufferutil@1.2.1 bufferutil@1.2.1 install:
node-gyp rebuildnpm WARN安装:bufferutil@1.2.1退出状态1> utf-8-validate@1.2.1 install/home/sudthenerd/polymer-starter- kit-1.2.1/node_modules/utf-8-validate> node-gyp rebuild gyp ERR!配置错误gyp ERR!stack错误:找不到Python可执行文件"/path/to/executable/python2.7",可以设置PYTHON env变量.gyp ERR!在failNoPython堆栈(/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:401:14)gyp ERR!堆栈在/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:330:11 gyp ERR!堆栈在F(/usr/lib/node_modules/npm/node_modules/which/which.js:78:16)gyp ERR!堆栈在E(/usr/lib/node_modules/npm/node_modules/which/which.js:82:29)gyp ERR!堆栈在/usr/lib/node_modules/npm/node_modules/which/which.js:93:16 gyp ERR!堆栈在FSReqWrap.oncomplete(fs.js:82:15)gyp ERR!System Linux 3.13.0-74-generic gyp ERR!命令"/ usr/bin/nodejs""/ usr/lib/node_modules/npm/node_modules/node -gyp/bin/node -gyp.js""rebuild"gyp ERR!cwd /home/sudthenerd/polymer-starter-kit-1.2.1/node_modules/utf-8-validate gyp ERR!node -v …
我正在使用"npm install"来下载和编译我编写的一个小node.js应用程序的所有依赖项.我使用的"package.json"文件是正确的,包含所有需要的信息.
其中一个要安装的软件包有"node-gyp"作为依赖项,所以我之前安装了"python2"软件包.
现在,在某个时刻我开始收到错误消息:
> node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:103:14)
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:42:11
gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:40:25)
gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:43:29)
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:54:16
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:99:15)
gyp ERR! System Linux 3.18.9-200.fc21.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /srv/visitor/node_modules/phantom/node_modules/dnode/node_modules/weak
gyp ERR! node -v …Run Code Online (Sandbox Code Playgroud) node.js ×5
node-gyp ×2
npm ×2
adonis.js ×1
c++ ×1
node-sass ×1
npm-install ×1
polymer-1.0 ×1
python ×1
python-2.7 ×1
sqlite ×1
vue.js ×1