aksalj / pesajs

MPESA G2 API client
MIT License
38 stars 27 forks source link

Requires python during npm installatiion #15

Open DaggieBlanqx opened 6 years ago

DaggieBlanqx commented 6 years ago

As I was running the node install,I encountered this :

e:\projects\farajaarts>npm install pesajs

node-expat@2.3.16 install e:\projects\node_modules\node-expat node-gyp rebuild

e:\projects\node_modules\node-expat>if not defined npm_config_node_gyp (node "C:\Users\Me\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" 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 PythonFinder.failNoPython (C:\Users\Me\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19) gyp ERR! stack at PythonFinder. (C:\Users\Me\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16) gyp ERR! stack at C:\Users\Me\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21) gyp ERR! System Windows_NT 10.0.15063 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Me\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd e:\projects\farajaarts\node_modules\node-expat gyp ERR! node -v v8.9.1 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-expat@2.3.16 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-expat@2.3.16 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Me\AppData\Roaming\npm-cache_logs\2017-12-08T17_16_54_628Z-debug.log