akaunting / akaunting

Online Accounting Software

Home Page:https://akaunting.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in npm install

nikraychev opened this issue · comments

Akaunting version

3.1.4

PHP version

8.1

Operating system

Windows 10

Steps to reproduce

npm install

Expected result

To installs any packages that it depends on

Actual result

11396 verbose cwd C:\laragon\www\akaunting
11397 verbose Windows_NT 10.0.22621
11398 verbose node v20.10.0
11399 verbose npm v10.2.3
11400 error code 1
11401 error path C:\laragon\www\akaunting\node_modules\node-sass
11402 error command failed
11403 error command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
11404 error Binary found at C:\laragon\www\akaunting\node_modules\node-sass\vendor\win32-x64-115\binding.node
11404 error Testing binary
11404 error Binary has a problem: Error: \?\C:\laragon\www\akaunting\node_modules\node-sass\vendor\win32-x64-115\binding.node is not a valid Win32 application.
11404 error \?\C:\laragon\www\akaunting\node_modules\node-sass\vendor\win32-x64-115\binding.node
11404 error at Module._extensions..node (node:internal/modules/cjs/loader:1473:18)
11404 error at Module.load (node:internal/modules/cjs/loader:1207:32)
11404 error at Module._load (node:internal/modules/cjs/loader:1023:12)
11404 error at Module.require (node:internal/modules/cjs/loader:1235:19)
11404 error at require (node:internal/modules/helpers:176:18)
11404 error at module.exports (C:\laragon\www\akaunting\node_modules\node-sass\lib\binding.js:19:10)
11404 error at Object. (C:\laragon\www\akaunting\node_modules\node-sass\lib\index.js:13:35)
11404 error at Module._compile (node:internal/modules/cjs/loader:1376:14)
11404 error at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
11404 error at Module.load (node:internal/modules/cjs/loader:1207:32) {
11404 error code: 'ERR_DLOPEN_FAILED'
11404 error }
11404 error Building the binary locally
11404 error Building: C:\Program Files\nodejs\node.exe C:\laragon\www\akaunting\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
11405 error gyp info it worked if it ends with ok
11405 error gyp verb cli [
11405 error gyp verb cli 'C:\Program Files\nodejs\node.exe',
11405 error gyp verb cli 'C:\laragon\www\akaunting\node_modules\node-gyp\bin\node-gyp.js',
11405 error gyp verb cli 'rebuild',
11405 error gyp verb cli '--verbose',
11405 error gyp verb cli '--libsass_ext=',
11405 error gyp verb cli '--libsass_cflags=',
11405 error gyp verb cli '--libsass_ldflags=',
11405 error gyp verb cli '--libsass_library='
11405 error gyp verb cli ]
11405 error gyp info using node-gyp@8.4.1
11405 error gyp info using node@20.10.0 | win32 | x64
11405 error gyp verb command rebuild []
11405 error gyp verb command clean []
11405 error gyp verb clean removing "build" directory
11405 error gyp verb command configure []
11405 error gyp verb find Python Python is not set from command line or npm configuration
11405 error gyp verb find Python Python is not set from environment variable PYTHON
11405 error gyp verb find Python checking if "python3" can be used
11405 error gyp verb find Python - executing "python3" to get executable path
11405 error gyp verb find Python - "python3" is not in PATH or produced an error
11405 error gyp verb find Python checking if "python" can be used
11405 error gyp verb find Python - executing "python" to get executable path
11405 error gyp verb find Python - executable path is "C:\Python312\python.exe"
11405 error gyp verb find Python - executing "C:\Python312\python.exe" to get version
11405 error gyp verb find Python - version is "3.12.0"
11405 error gyp info find Python using Python version 3.12.0 found at "C:\Python312\python.exe"
11405 error gyp verb get node dir no --target version specified, falling back to host node version: 20.10.0
11405 error gyp verb command install [ '20.10.0' ]
11405 error gyp verb install input version string "20.10.0"
11405 error gyp verb install installing version: 20.10.0
11405 error gyp verb install --ensure was passed, so won't reinstall if already installed
11405 error gyp verb install version is already installed, need to check "installVersion"
11405 error gyp verb got "installVersion" 9
11405 error gyp verb needs "installVersion" 9
11405 error gyp verb install version is good
11405 error gyp verb get node dir target node version installed: 20.10.0
11405 error gyp verb build dir attempting to create "build" dir: C:\laragon\www\akaunting\node_modules\node-sass\build
11405 error gyp verb build dir "build" dir needed to be created? Yes
11405 error gyp verb find VS msvs_version not set from command line or npm config
11405 error gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
11405 error gyp verb find VS checking VS2019 (16.11.34301.259) found at:
11405 error gyp verb find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
11405 error gyp verb find VS - found "Visual Studio C++ core features"
11405 error gyp verb find VS - found VC++ toolset: v142
11405 error gyp verb find VS - missing any Windows SDK
11405 error gyp verb find VS could not find a version of Visual Studio 2017 or newer to use
11405 error gyp verb find VS looking for Visual Studio 2015
11405 error gyp verb find VS - not found
11405 error gyp verb find VS not looking for VS2013 as it is only supported up to Node.js 8
11405 error gyp ERR! find VS
11405 error gyp ERR! find VS msvs_version not set from command line or npm config
11405 error gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
11405 error gyp ERR! find VS checking VS2019 (16.11.34301.259) found at:
11405 error gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
11405 error gyp ERR! find VS - found "Visual Studio C++ core features"
11405 error gyp ERR! find VS - found VC++ toolset: v142
11405 error gyp ERR! find VS - missing any Windows SDK
11405 error gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
11405 error gyp ERR! find VS looking for Visual Studio 2015
11405 error gyp ERR! find VS - not found
11405 error gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
11405 error gyp ERR! find VS
11405 error gyp ERR! find VS **************************************************************
11405 error gyp ERR! find VS You need to install the latest version of Visual Studio
11405 error gyp ERR! find VS including the "Desktop development with C++" workload.
11405 error gyp ERR! find VS For more information consult the documentation at:
11405 error gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
11405 error gyp ERR! find VS **************************************************************
11405 error gyp ERR! find VS
11405 error gyp ERR! configure error
11405 error gyp ERR! stack Error: Could not find any Visual Studio installation to use
11405 error gyp ERR! stack at VisualStudioFinder.fail (C:\laragon\www\akaunting\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
11405 error gyp ERR! stack at C:\laragon\www\akaunting\node_modules\node-gyp\lib\find-visualstudio.js:75:16
11405 error gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\laragon\www\akaunting\node_modules\node-gyp\lib\find-visualstudio.js:363:14)
11405 error gyp ERR! stack at C:\laragon\www\akaunting\node_modules\node-gyp\lib\find-visualstudio.js:71:14
11405 error gyp ERR! stack at C:\laragon\www\akaunting\node_modules\node-gyp\lib\find-visualstudio.js:384:16
11405 error gyp ERR! stack at C:\laragon\www\akaunting\node_modules\node-gyp\lib\util.js:54:7
11405 error gyp ERR! stack at C:\laragon\www\akaunting\node_modules\node-gyp\lib\util.js:33:16
11405 error gyp ERR! stack at ChildProcess.exithandler (node:child_process:430:5)
11405 error gyp ERR! stack at ChildProcess.emit (node:events:514:28)
11405 error gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
11405 error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
11405 error gyp ERR! System Windows_NT 10.0.22621
11405 error gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\laragon\www\akaunting\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
11405 error gyp ERR! cwd C:\laragon\www\akaunting\node_modules\node-sass
11405 error gyp ERR! node -v v20.10.0
11405 error gyp ERR! node-gyp -v v8.4.1
11405 error gyp ERR! not ok
11405 error Build failed with error code: 1
11406 verbose exit 1
11407 timing npm Completed in 76447ms
11408 verbose unfinished npm timer reify 1701267555187
11409 verbose unfinished npm timer reify:build 1701267626057
11410 verbose unfinished npm timer build 1701267626058
11411 verbose unfinished npm timer build:deps 1701267626059
11412 verbose unfinished npm timer build:run:postinstall 1701267626282
11413 verbose unfinished npm timer build:run:postinstall:node_modules/node-sass 1701267626295
11414 verbose code 1

Additional comments

I removed the vendor and node_modules folders, then Akaunting the last composer.json repository, composer.lock and the package-lock.json file, but that didn't fix the problem.

Relevant log output

11396 verbose cwd C:\laragon\www\akaunting
11397 verbose Windows_NT 10.0.22621
11398 verbose node v20.10.0
11399 verbose npm  v10.2.3
11400 error code 1
11401 error path C:\laragon\www\akaunting\node_modules\node-sass
11402 error command failed
11403 error command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
11404 error Binary found at C:\laragon\www\akaunting\node_modules\node-sass\vendor\win32-x64-115\binding.node
11404 error Testing binary
11404 error Binary has a problem: Error: \\?\C:\laragon\www\akaunting\node_modules\node-sass\vendor\win32-x64-115\binding.node is not a valid Win32 application.
11404 error \\?\C:\laragon\www\akaunting\node_modules\node-sass\vendor\win32-x64-115\binding.node
11404 error     at Module._extensions..node (node:internal/modules/cjs/loader:1473:18)
11404 error     at Module.load (node:internal/modules/cjs/loader:1207:32)
11404 error     at Module._load (node:internal/modules/cjs/loader:1023:12)
11404 error     at Module.require (node:internal/modules/cjs/loader:1235:19)
11404 error     at require (node:internal/modules/helpers:176:18)
11404 error     at module.exports (C:\laragon\www\akaunting\node_modules\node-sass\lib\binding.js:19:10)
11404 error     at Object.<anonymous> (C:\laragon\www\akaunting\node_modules\node-sass\lib\index.js:13:35)
11404 error     at Module._compile (node:internal/modules/cjs/loader:1376:14)
11404 error     at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
11404 error     at Module.load (node:internal/modules/cjs/loader:1207:32) {
11404 error   code: 'ERR_DLOPEN_FAILED'
11404 error }
11404 error Building the binary locally
11404 error Building: C:\Program Files\nodejs\node.exe C:\laragon\www\akaunting\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
11405 error gyp info it worked if it ends with ok
11405 error gyp verb cli [
11405 error gyp verb cli   'C:\\Program Files\\nodejs\\node.exe',
11405 error gyp verb cli   'C:\\laragon\\www\\akaunting\\node_modules\\node-gyp\\bin\\node-gyp.js',
11405 error gyp verb cli   'rebuild',
11405 error gyp verb cli   '--verbose',
11405 error gyp verb cli   '--libsass_ext=',
11405 error gyp verb cli   '--libsass_cflags=',
11405 error gyp verb cli   '--libsass_ldflags=',
11405 error gyp verb cli   '--libsass_library='
11405 error gyp verb cli ]
11405 error gyp info using node-gyp@8.4.1
11405 error gyp info using node@20.10.0 | win32 | x64
11405 error gyp verb command rebuild []
11405 error gyp verb command clean []
11405 error gyp verb clean removing "build" directory
11405 error gyp verb command configure []
11405 error gyp verb find Python Python is not set from command line or npm configuration
11405 error gyp verb find Python Python is not set from environment variable PYTHON
11405 error gyp verb find Python checking if "python3" can be used
11405 error gyp verb find Python - executing "python3" to get executable path
11405 error gyp verb find Python - "python3" is not in PATH or produced an error
11405 error gyp verb find Python checking if "python" can be used
11405 error gyp verb find Python - executing "python" to get executable path
11405 error gyp verb find Python - executable path is "C:\Python312\python.exe"
11405 error gyp verb find Python - executing "C:\Python312\python.exe" to get version
11405 error gyp verb find Python - version is "3.12.0"
11405 error gyp info find Python using Python version 3.12.0 found at "C:\Python312\python.exe"
11405 error gyp verb get node dir no --target version specified, falling back to host node version: 20.10.0
11405 error gyp verb command install [ '20.10.0' ]
11405 error gyp verb install input version string "20.10.0"
11405 error gyp verb install installing version: 20.10.0
11405 error gyp verb install --ensure was passed, so won't reinstall if already installed
11405 error gyp verb install version is already installed, need to check "installVersion"
11405 error gyp verb got "installVersion" 9
11405 error gyp verb needs "installVersion" 9
11405 error gyp verb install version is good
11405 error gyp verb get node dir target node version installed: 20.10.0
11405 error gyp verb build dir attempting to create "build" dir: C:\laragon\www\akaunting\node_modules\node-sass\build
11405 error gyp verb build dir "build" dir needed to be created? Yes
11405 error gyp verb find VS msvs_version not set from command line or npm config
11405 error gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
11405 error gyp verb find VS checking VS2019 (16.11.34301.259) found at:
11405 error gyp verb find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
11405 error gyp verb find VS - found "Visual Studio C++ core features"
11405 error gyp verb find VS - found VC++ toolset: v142
11405 error gyp verb find VS - missing any Windows SDK
11405 error gyp verb find VS could not find a version of Visual Studio 2017 or newer to use
11405 error gyp verb find VS looking for Visual Studio 2015
11405 error gyp verb find VS - not found
11405 error gyp verb find VS not looking for VS2013 as it is only supported up to Node.js 8
11405 error gyp ERR! find VS 
11405 error gyp ERR! find VS msvs_version not set from command line or npm config
11405 error gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
11405 error gyp ERR! find VS checking VS2019 (16.11.34301.259) found at:
11405 error gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
11405 error gyp ERR! find VS - found "Visual Studio C++ core features"
11405 error gyp ERR! find VS - found VC++ toolset: v142
11405 error gyp ERR! find VS - missing any Windows SDK
11405 error gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
11405 error gyp ERR! find VS looking for Visual Studio 2015
11405 error gyp ERR! find VS - not found
11405 error gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
11405 error gyp ERR! find VS 
11405 error gyp ERR! find VS **************************************************************
11405 error gyp ERR! find VS You need to install the latest version of Visual Studio
11405 error gyp ERR! find VS including the "Desktop development with C++" workload.
11405 error gyp ERR! find VS For more information consult the documentation at:
11405 error gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
11405 error gyp ERR! find VS **************************************************************
11405 error gyp ERR! find VS 
11405 error gyp ERR! configure error 
11405 error gyp ERR! stack Error: Could not find any Visual Studio installation to use
11405 error gyp ERR! stack     at VisualStudioFinder.fail (C:\laragon\www\akaunting\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
11405 error gyp ERR! stack     at C:\laragon\www\akaunting\node_modules\node-gyp\lib\find-visualstudio.js:75:16
11405 error gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\laragon\www\akaunting\node_modules\node-gyp\lib\find-visualstudio.js:363:14)
11405 error gyp ERR! stack     at C:\laragon\www\akaunting\node_modules\node-gyp\lib\find-visualstudio.js:71:14
11405 error gyp ERR! stack     at C:\laragon\www\akaunting\node_modules\node-gyp\lib\find-visualstudio.js:384:16
11405 error gyp ERR! stack     at C:\laragon\www\akaunting\node_modules\node-gyp\lib\util.js:54:7
11405 error gyp ERR! stack     at C:\laragon\www\akaunting\node_modules\node-gyp\lib\util.js:33:16
11405 error gyp ERR! stack     at ChildProcess.exithandler (node:child_process:430:5)
11405 error gyp ERR! stack     at ChildProcess.emit (node:events:514:28)
11405 error gyp ERR! stack     at maybeClose (node:internal/child_process:1105:16)
11405 error gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:305:5)
11405 error gyp ERR! System Windows_NT 10.0.22621
11405 error gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\laragon\\www\\akaunting\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
11405 error gyp ERR! cwd C:\laragon\www\akaunting\node_modules\node-sass
11405 error gyp ERR! node -v v20.10.0
11405 error gyp ERR! node-gyp -v v8.4.1
11405 error gyp ERR! not ok 
11405 error Build failed with error code: 1
11406 verbose exit 1
11407 timing npm Completed in 76447ms
11408 verbose unfinished npm timer reify 1701267555187
11409 verbose unfinished npm timer reify:build 1701267626057
11410 verbose unfinished npm timer build 1701267626058
11411 verbose unfinished npm timer build:deps 1701267626059
11412 verbose unfinished npm timer build:run:postinstall 1701267626282
11413 verbose unfinished npm timer build:run:postinstall:node_modules/node-sass 1701267626295
11414 verbose code 1

C:\Apache24\htdocs\akaunting>npm install
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@achrinza/node-ipc@9.2.6',
npm WARN EBADENGINE required: {
npm WARN EBADENGINE node: '8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19'
npm WARN EBADENGINE },
npm WARN EBADENGINE current: { node: 'v20.10.0', npm: '10.2.3' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'amqplib@0.5.2',
npm WARN EBADENGINE required: { node: '>=0.8 <=9' },
npm WARN EBADENGINE current: { node: 'v20.10.0', npm: '10.2.3' }
npm WARN EBADENGINE }
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uuid@3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated @themesberg/flowbite@1.3.0: WARNING: This project has been renamed to flowbite. Install using flowbite instead.
npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path C:\Apache24\htdocs\akaunting\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Binary found at C:\Apache24\htdocs\akaunting\node_modules\node-sass\vendor\win32-x64-115\binding.node
npm ERR! Testing binary
npm ERR! Binary has a problem: Error: \?\C:\Apache24\htdocs\akaunting\node_modules\node-sass\vendor\win32-x64-115\binding.node is not a valid Win32 application.
npm ERR! \?\C:\Apache24\htdocs\akaunting\node_modules\node-sass\vendor\win32-x64-115\binding.node
npm ERR! at Module._extensions..node (node:internal/modules/cjs/loader:1473:18)
npm ERR! at Module.load (node:internal/modules/cjs/loader:1207:32)
npm ERR! at Module._load (node:internal/modules/cjs/loader:1023:12)
npm ERR! at Module.require (node:internal/modules/cjs/loader:1235:19)
npm ERR! at require (node:internal/modules/helpers:176:18)
npm ERR! at module.exports (C:\Apache24\htdocs\akaunting\node_modules\node-sass\lib\binding.js:19:10)
npm ERR! at Object. (C:\Apache24\htdocs\akaunting\node_modules\node-sass\lib\index.js:13:35)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1376:14)
npm ERR! at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:1207:32) {
npm ERR! code: 'ERR_DLOPEN_FAILED'
npm ERR! }
npm ERR! Building the binary locally
npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Apache24\htdocs\akaunting\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli 'C:\Program Files\nodejs\node.exe',
npm ERR! gyp verb cli 'C:\Apache24\htdocs\akaunting\node_modules\node-gyp\bin\node-gyp.js',
npm ERR! gyp verb cli 'rebuild',
npm ERR! gyp verb cli '--verbose',
npm ERR! gyp verb cli '--libsass_ext=',
npm ERR! gyp verb cli '--libsass_cflags=',
npm ERR! gyp verb cli '--libsass_ldflags=',
npm ERR! gyp verb cli '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using node-gyp@8.4.1
npm ERR! gyp info using node@20.10.0 | win32 | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb find Python Python is not set from command line or npm configuration
npm ERR! gyp verb find Python Python is not set from environment variable PYTHON
npm ERR! gyp verb find Python checking if "python3" can be used
npm ERR! gyp verb find Python - executing "python3" to get executable path
npm ERR! gyp verb find Python - "python3" is not in PATH or produced an error
npm ERR! gyp verb find Python checking if "python" can be used
npm ERR! gyp verb find Python - executing "python" to get executable path
npm ERR! gyp verb find Python - executable path is "C:\Python312\python.exe"
npm ERR! gyp verb find Python - executing "C:\Python312\python.exe" to get version
npm ERR! gyp verb find Python - version is "3.12.0"
npm ERR! gyp info find Python using Python version 3.12.0 found at "C:\Python312\python.exe"
npm ERR! gyp verb get node dir no --target version specified, falling back to host node version: 20.10.0
npm ERR! gyp verb command install [ '20.10.0' ]
npm ERR! gyp verb install input version string "20.10.0"
npm ERR! gyp verb install installing version: 20.10.0
npm ERR! gyp verb install --ensure was passed, so won't reinstall if already installed
npm ERR! gyp verb install version is already installed, need to check "installVersion"
npm ERR! gyp verb got "installVersion" 9
npm ERR! gyp verb needs "installVersion" 9
npm ERR! gyp verb install version is good
npm ERR! gyp verb get node dir target node version installed: 20.10.0
npm ERR! gyp verb build dir attempting to create "build" dir: C:\Apache24\htdocs\akaunting\node_modules\node-sass\build
npm ERR! gyp verb build dir "build" dir needed to be created? Yes
npm ERR! gyp verb find VS msvs_version not set from command line or npm config
npm ERR! gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp verb find VS checking VS2022 (17.8.34322.80) found at:
npm ERR! gyp verb find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm ERR! gyp verb find VS - found "Visual Studio C++ core features"
npm ERR! gyp verb find VS - found VC++ toolset: v143
npm ERR! gyp verb find VS - missing any Windows SDK
npm ERR! gyp verb find VS checking VS2019 (16.11.34301.259) found at:
npm ERR! gyp verb find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
npm ERR! gyp verb find VS - found "Visual Studio C++ core features"
npm ERR! gyp verb find VS - found VC++ toolset: v142
npm ERR! gyp verb find VS - missing any Windows SDK
npm ERR! gyp verb find VS could not find a version of Visual Studio 2017 or newer to use
npm ERR! gyp verb find VS looking for Visual Studio 2015
npm ERR! gyp verb find VS - not found
npm ERR! gyp verb 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 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 VS2022 (17.8.34322.80) found at:
npm ERR! gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"
npm ERR! gyp ERR! find VS - found VC++ toolset: v143
npm ERR! gyp ERR! find VS - missing any Windows SDK
npm ERR! gyp ERR! find VS checking VS2019 (16.11.34301.259) 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 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:\Apache24\htdocs\akaunting\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
npm ERR! gyp ERR! stack at C:\Apache24\htdocs\akaunting\node_modules\node-gyp\lib\find-visualstudio.js:75:16
npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Apache24\htdocs\akaunting\node_modules\node-gyp\lib\find-visualstudio.js:363:14)
npm ERR! gyp ERR! stack at C:\Apache24\htdocs\akaunting\node_modules\node-gyp\lib\find-visualstudio.js:71:14
npm ERR! gyp ERR! stack at C:\Apache24\htdocs\akaunting\node_modules\node-gyp\lib\find-visualstudio.js:384:16
npm ERR! gyp ERR! stack at C:\Apache24\htdocs\akaunting\node_modules\node-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack at C:\Apache24\htdocs\akaunting\node_modules\node-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:430:5)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:514:28)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
npm ERR! gyp ERR! System Windows_NT 10.0.22621
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Apache24\htdocs\akaunting\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="npm ERR! gyp ERR! cwd C:\Apache24\htdocs\akaunting\node_modules\node-sass
npm ERR! gyp ERR! node -v v20.10.0
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1

npm ERR! A complete log of this run can be found in: C:\Users\profn\AppData\Local\npm-cache_logs\2023-12-01T15_49_44_920Z-debug-0.log

C:\Apache24\htdocs\akaunting>npm run dev

akaunting@3.0.13 dev
npm run development

akaunting@3.0.13 development
mix

node:internal/modules/cjs/loader:1147
throw err;
^

Error: Cannot find module 'C:\Apache24\htdocs\akaunting\node_modules\laravel-mix\bin\cli.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v20.10.0

[Sat Dec 02 07:23:09.653607 2023] [authz_core:error] [pid 36796:tid 1360] [client 127.0.0.1:56943] AH01630: client denied by server configuration: C:/Apache24/htdocs/akaunting/.htaccess

[Sat Dec 02 07:47:09.367725 2023] [cgi:error] [pid 36796:tid 1344] (OS 2)The system cannot find the file specified. : [client 127.0.0.1:57434] couldn't create child process: 720002: easy-install.py, referer: http://localhost/frappe_docker/

[Sat Dec 02 07:47:09.367725 2023] [cgi:error] [pid 36796:tid 1344] (OS 2)The system cannot find the file specified. : [client 127.0.0.1:57434] AH01223: couldn't spawn child process: C:/Apache24/htdocs/frappe_docker/easy-install.py, referer: http://localhost/frappe_docker/

I tried both MySQL and MariaDB, neither database can be connected. Through PHPMyAdmin I am able to connect to both databases.

C:\Apache24\htdocs\akaunting>php artisan install --db-name="akaunting" --db-username="boot" --db-password="111" --admin-email="vbg@abv.bg" --admin-password="111"
Setting locale en-GB
Creating database tables
Connecting to database akaunting@localhost:3306
Error: Could not connect to the database! Please, make sure the details are correct.