Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Aborting installation. npm install --save-dev --save-exact --loglevel error @fitbit/sdk-cli @fitbi

Hello,

 

when i am trying to create via  create-fitbit-app I get everytime an error. The error states that it failed.

The command used is npx create-fitbit-app my-first-clock 

After a while I get an error like 

npm ERR! code 1
npm ERR! path C:\Users\weusthofmhh\Documents\GitHub\my-first-clock\node_modules\keytar
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install || node-gyp rebuild
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS checking VS2019 (16.11.33529.622) found at:
npm ERR! gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"
npm ERR! gyp ERR! find VS - found VC++ toolset: v142
npm ERR! gyp ERR! find VS - missing any Windows SDK
npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
npm ERR! gyp ERR! find VS not looking for VS2015 as it is only supported up to Node.js 18
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Users\weusthofmhh\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
npm ERR! gyp ERR! stack at C:\Users\weusthofmhh\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16
npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\weusthofmhh\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:369:14)
npm ERR! gyp ERR! stack at C:\Users\weusthofmhh\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14
npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2015 (C:\Users\weusthofmhh\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:353:14)
npm ERR! gyp ERR! stack at C:\Users\weusthofmhh\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:67:12
npm ERR! gyp ERR! stack at VisualStudioFinder.parseData (C:\Users\weusthofmhh\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:237:5)
npm ERR! gyp ERR! stack at C:\Users\weusthofmhh\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:143:14
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:411:7)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:511:28)
npm ERR! gyp ERR! System Windows_NT 10.0.19045
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\weusthofmhh\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\weusthofmhh\Documents\GitHub\my-first-clock\node_modules\keytar
npm ERR! gyp ERR! node -v v20.0.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: 

Aborting installation.
npm install --save-dev --save-exact --loglevel error @Fitbit/sdk-cli @Fitbit/sdk has failed.

Deleting generated file... node_modules
Deleting generated file... package.json

I've installed the @Fitbit/sdk and @Fitbit/sdk-cli.

But the @Fitbit/sdk-cli want install whatever I try. 

That could be also the reason that I cannot use nxp fitbit where it complains about missing module cli-js. And it's correct, because it cannot be installed by me on the computer. 

Please help me to solve this problem, so that I can continue with developing my app

Best Answer
0 Votes
3 REPLIES 3

I'd say this is because your computer's configuration is such that there is no prebuilt version of the keytar npm package for it. The installation process is trying to build one for you, but it needs a suitable version of Visual Studio C++ to be installed. More info here.

Peter McLennan
Gondwana Software
Best Answer

Hi @weusthofm - check if you use a 32 bit operating system and which version of Windows CLI might not work on the 32bit Home version.

Author | ch, passion for improvement.

Best Answer

@Guy_  Good call. In particular, it seems that the current edition of Visual Studio Build Tools may not have a 32-bit version. However, the 2017 or 2019 editions may have 32-bit versions. There's a chance that option 1 here might deal with this. I can't test it because I don't have a 32-bit OS.

Peter McLennan
Gondwana Software
Best Answer
0 Votes