Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install on Windows fails #275

Open
gpavlov2016 opened this issue Jul 28, 2022 · 0 comments
Open

npm install on Windows fails #275

gpavlov2016 opened this issue Jul 28, 2022 · 0 comments
Labels
bug Something isn't working feedback

Comments

@gpavlov2016
Copy link
Contributor

The npm install command finishes with error when run on Windows.

Steps to reproduce:

  1. Install nodejs for Windows
  2. Install flow-cli
  3. Install Python for Windows - need to add to documentation
  4. Install Visual Studio Code
  5. Clone the repository && cd kitty-items && npm install

Error message from the build log (reproduced on Windows 11):

npm ERR! code 1
npm ERR! path C:\Users\gpavlov\kitty-items\api\node_modules\better-sqlite3
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install || npm run build-release
npm ERR! > [email protected] build-release
npm ERR! > node-gyp rebuild --release
npm ERR! prebuild-install WARN install No prebuilt binaries found (target=16.16.0 runtime=node arch=ia32 libc= platform=win32)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | ia32
npm ERR! gyp info find Python using Python version 3.10.5 found at "C:\Users\gpavlov\AppData\Local\Programs\Python\Python310\python.exe"
npm ERR! gyp ERR! find VS fy:next: timing reifyNode:node_modules/inquirer/node_modules/rx 
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 could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm[##################] / reify:next: timing reifyNode:node_modules/inquirer/node_modules/
 ERR! gyp ERR! find VS - not found
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![##################] / reify:next: timing reifyNode:node_modules/inquirer/node_mod 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 **************************************************************x 
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\gpavlov\kitty-items\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
npm ERR! gyp ERR! stack     at C:\Users\gpavlov\kitty-items\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16
npm ERR! gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\Users\gpavlov\kitty-items\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14)        
npm ERR! gyp ERR! stack     at C:\Users\gpavlov\kitty-items\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14
npm ERR! gyp ERR! stack     at C:\Users\gpavlov\kitty-items\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:384:16
npm ERR! gyp ERR! stack     at C:\Users\gpavlov\kitty-items\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack     at C:\Users\gpavlov\kitty-items\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack     at ChildProcess.exithandler (node:child_process:406:5)        
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)
npm ERR! gyp ERR! System Windows_NT 10.0.22000
npm ERR![##################] / reify:next: timing reifyNode:node_modules/inquirer/node_modlerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.      npm ERR! code 1####] / reify:next: timing reifyNode:node_modules/inquirer/node_modules/rx 
npm ERR! path C:\Users\gpavlov\kitty-items                                                npm [##################] / reify:next: timing reifyNode:node_modules/inquirer/node_modulesERR! command failed                                                                       npm ERR! command C:\Windows\system32\cmd.exe /d /s /c npx lerna exec npm install          

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\gpavlov\AppData\Local\npm-cache\_logs\2022-07-28T15_26_40_114Z-debug-0.log
PS C:\Users\gpavlov\kitty-items> [##################] / reify:next: timing reifyNode:node_npm ERR! code 1
npm ERR! path C:\Users\gpavlov\kitty-items\web\node_modules\better-sqlite3
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install || npm run build-release
npm ERR! > [email protected] build-release
npm ERR! > node-gyp rebuild --release
npm ERR! prebuild-install WARN install No prebuilt binaries found (target=16.16.0 runtime=node arch=ia32 libc= platform=win32)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | ia32
npm ERR! gyp info find Python using Python version 3.10.5 found at "C:\Users\gpavlov\AppData\Local\Programs\Python\Python310\python.exe"
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 could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
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\gpavlov\kitty-items\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
npm ERR! gyp ERR! stack     at C:\Users\gpavlov\kitty-items\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16
npm ERR! gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\Users\gpavlov\kitty-items\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14)        
npm ERR! gyp ERR! stack     at C:\Users\gpavlov\kitty-items\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14
npm ERR! gyp ERR! stack     at C:\Users\gpavlov\kitty-items\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:384:16
npm ERR! gyp ERR! stack     at C:\Users\gpavlov\kitty-items\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack     at C:\Users\gpavlov\kitty-items\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack     at ChildProcess.exithandler (node:child_process:406:5)        
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)
npm ERR! gyp ERR! System Windows_NT 10.0.22000
npm ERR! gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\gpavlov\\kitty-items\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--release"
npm ERR! gyp ERR! cwd C:\Users\gpavlov\kitty-items\web\node_modules\better-sqlite3        
npm ERR! gyp ERR! node -v v16.16.0
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\gpavlov\AppData\Local\npm-cache\_logs\2022-07-28T15_26_45_763Z-debug-0.log
@gpavlov2016 gpavlov2016 added bug Something isn't working feedback labels Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feedback
Projects
None yet
Development

No branches or pull requests

1 participant