简体   繁体   中英

dnode working along nodejs on windows 8 error

i have been trying to get dnode to install from this link

http://bergie.iki.fi/blog/dnode-make_php_and_node-js_talk_to_each_other/

i tried

npm install dnode

i gave me the following error.

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 (E:\Program Files (x86)\nodejs\node_modules\n
pm\node_modules\node-gyp\lib\configure.js:118:14)

could someone plz assist me with this issue with appropriate commands :)

much regards guys

Do you have python installed? Is it in your path?

which python

If not you can set the PYTHON environment variable specifically so that gyp can find it.

export PYTHON=/Path/To/python

This is probably due to the weak module that dnode uses, which is a native module and needs to be compiled with node-gyp. You are likely to have other problems, not just having Python available. I've had problems installing dnode on windows too.

However, weak is now an optional module in dnode . Its not recommended to use dnode without weak for long running or very heavily used connections without weak, as its a potential memory leak - but it is now usable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM