我嘗試安裝一個模塊以與Superfeedr的XMPP API在Node.js中進行交互。由於這裏(https://github.com/superfeedr/superfeedr-node)解釋說,這是我做的Node.js:Python和Visual Studio需要安裝Node.js模塊(Superfeedr Node.js包裝器)
npm install superfeedr
但我得到在控制檯以下消息:
// at the beginning it seems ok but then...
C:\Users\Gabrielle\node_modules\superfeedr\node_modules\node-xmpp\node_modules\node-xmpp-core\node_modules\node-stringprep>node
"C:\Program Files\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 PYTHON env variable.
gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:101:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System Windows_NT 6.0.6001
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-
gyp.js" "rebuild"
gyp ERR! cwd
//and much following...
我缺少的東西?爲什麼提到Python(我根本不使用Python)?