haio / loopback-connector-kafka

Kafka connector for loopback-datasource-juggler.
2 stars 0 forks source link

unable to install kafka loopback connector #2

Open tnelluri1 opened 7 years ago

tnelluri1 commented 7 years ago

I am try to install kafka loopback connector using below command, I am getting following error. Can you please guide me to resolve the error.

npm install loopback-connector-kafka --save

C:\Users\miracle\KafkaAPI>npm** install loopback-connector-kafka --save npm WARN deprecated node-uuid@1.4.8: Use uuid module instead npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

snappy@4.1.2 install C:\Users\miracle\KafkaAPI\node_modules\snappy node-gyp rebuild

C:\Users\miracle\KafkaAPI\node_modules\snappy>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_mo dules\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 PYT HON env variable. gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod e_modules\node-gyp\lib\configure.js:401:14) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node -gyp\lib\configure.js:356:11 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15) gyp ERR! System Windows_NT 6.3.9600 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\miracle\KafkaAPI\node_modules\snappy gyp ERR! node -v v6.4.0 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok KafkaAPI@1.0.0 C:\Users\miracle\KafkaAPI `-- (empty)

npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js" "install" "loopback-connector-kafka" "--save " npm ERR! node v6.4.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE

npm ERR! snappy@4.1.2 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the snappy@4.1.2 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the snappy package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs snappy npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls snappy npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\miracle\KafkaAPI\npm-debug.log npm ERR! code 1`