Npm install couchbase fails


#1

I am trying to install the couchbase package for a project I am working on and I cant get the npm install to work. I keep getting a syntax error during the install:
:slight_smile:gyp ERR! stack Error: Command failed: C:\Users\wende\AppData\Local\Programs\Python\Python37\python.EXE -c import sys; print β€œ%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack File β€œβ€, line 1
gyp ERR! stack import sys; print β€œ%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax

I am running windows 10 Home 64 bit OS and just installed the newest version of python, npm, and VSCode


#2

to add on to the error I also get
gyp ERR! command β€œC:\Program Files\nodejs\node.exe” β€œC:\Users\wende\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” β€œrebuild”
gyp ERR! cwd C:\Users\wende\AppData\Roaming\npm\node_modules\couchbase
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! couchbase@3.0.0-alpha.1 install: prebuild-install || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the couchbase@3.0.0-alpha.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


#3

Kinda solved, I installed couchbase version 2.6.2 and it installed successfully. The issue must be with the newer version of the SDK.