akaunting icon indicating copy to clipboard operation
akaunting copied to clipboard

npm install error

Open roncsak opened this issue 4 months ago • 2 comments

Akaunting version

3.1.12

PHP version

8.3.12

Operating system

macos

Steps to reproduce

Node version: v18.20.4

I'm following the steps written in the README:

  • Install Composer and Npm
  • Clone the repository: git clone https://github.com/akaunting/akaunting.git
  • Install dependencies: composer install ; npm install ; npm run dev
  • Install Akaunting:
php artisan install --db-name="akaunting" --db-username="root" --db-password="pass" --admin-email="[email protected]" --admin-password="123456"
  • Create sample data (optional): php artisan sample-data:seed

Durin the step npm install I've got errors.

Expected result

Have the installation work

Actual result

npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: '[email protected]',
npm warn EBADENGINE   required: { node: '>=0.8 <=9' },
npm warn EBADENGINE   current: { node: 'v18.20.4', npm: '10.7.0' }
npm warn EBADENGINE }
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm warn deprecated [email protected]: 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 @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm warn deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: 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 [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated @themesberg/[email protected]: WARNING: This project has been renamed to flowbite. Install using flowbite instead.
npm warn deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm warn deprecated [email protected]: Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead.
npm warn deprecated [email protected]: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.
npm warn deprecated [email protected]: 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 error code 1
npm error path /Users/roncsak/Herd/akaunting/node_modules/node-sass
npm error command failed
npm error command sh -c node scripts/build.js
npm error Binary found at /Users/roncsak/Herd/akaunting/node_modules/node-sass/vendor/darwin-arm64-108/binding.node
npm error Testing binary
npm error Binary has a problem: Error: dlopen(/Users/roncsak/Herd/akaunting/node_modules/node-sass/vendor/darwin-arm64-108/binding.node, 0x0001): tried: '/Users/roncsak/Herd/akaunting/node_modules/node-sass/vendor/darwin-arm64-108/binding.node' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/roncsak/Herd/akaunting/node_modules/node-sass/vendor/darwin-arm64-108/binding.node' (no such file), '/Users/roncsak/Herd/akaunting/node_modules/node-sass/vendor/darwin-arm64-108/binding.node' (not a mach-o file)
npm error     at Module._extensions..node (node:internal/modules/cjs/loader:1460:18)
npm error     at Module.load (node:internal/modules/cjs/loader:1203:32)
npm error     at Module._load (node:internal/modules/cjs/loader:1019:12)
npm error     at Module.require (node:internal/modules/cjs/loader:1231:19)
npm error     at require (node:internal/modules/helpers:177:18)
npm error     at module.exports (/Users/roncsak/Herd/akaunting/node_modules/node-sass/lib/binding.js:19:10)
npm error     at Object.<anonymous> (/Users/roncsak/Herd/akaunting/node_modules/node-sass/lib/index.js:13:35)
npm error     at Module._compile (node:internal/modules/cjs/loader:1364:14)
npm error     at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
npm error     at Module.load (node:internal/modules/cjs/loader:1203:32) {
npm error   code: 'ERR_DLOPEN_FAILED'
npm error }
npm error Building the binary locally
npm error Building: /Users/roncsak/.nvm/versions/node/v18.20.4/bin/node /Users/roncsak/Herd/akaunting/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm error gyp info it worked if it ends with ok
npm error gyp verb cli [
npm error gyp verb cli   '/Users/roncsak/.nvm/versions/node/v18.20.4/bin/node',
npm error gyp verb cli   '/Users/roncsak/Herd/akaunting/node_modules/node-gyp/bin/node-gyp.js',
npm error gyp verb cli   'rebuild',
npm error gyp verb cli   '--verbose',
npm error gyp verb cli   '--libsass_ext=',
npm error gyp verb cli   '--libsass_cflags=',
npm error gyp verb cli   '--libsass_ldflags=',
npm error gyp verb cli   '--libsass_library='
npm error gyp verb cli ]
npm error gyp info using [email protected]
npm error gyp info using [email protected] | darwin | arm64
npm error gyp verb command rebuild []
npm error gyp verb command clean []
npm error gyp verb clean removing "build" directory
npm error gyp verb command configure []
npm error gyp verb find Python Python is not set from command line or npm configuration
npm error gyp verb find Python Python is not set from environment variable PYTHON
npm error gyp verb find Python checking if "python3" can be used
npm error gyp verb find Python - executing "python3" to get executable path
npm error gyp verb find Python - executable path is "/opt/homebrew/opt/[email protected]/bin/python3.12"
npm error gyp verb find Python - executing "/opt/homebrew/opt/[email protected]/bin/python3.12" to get version
npm error gyp verb find Python - version is "3.12.6"
npm error gyp info find Python using Python version 3.12.6 found at "/opt/homebrew/opt/[email protected]/bin/python3.12"
npm error gyp verb get node dir no --target version specified, falling back to host node version: 18.20.4
npm error gyp verb command install [ '18.20.4' ]
npm error gyp verb install input version string "18.20.4"
npm error gyp verb install installing version: 18.20.4
npm error gyp verb install --ensure was passed, so won't reinstall if already installed
npm error gyp verb install version is already installed, need to check "installVersion"
npm error gyp verb got "installVersion" 9
npm error gyp verb needs "installVersion" 9
npm error gyp verb install version is good
npm error gyp verb get node dir target node version installed: 18.20.4
npm error gyp verb build dir attempting to create "build" dir: /Users/roncsak/Herd/akaunting/node_modules/node-sass/build
npm error gyp verb build dir "build" dir needed to be created? Yes
npm error gyp verb build/config.gypi creating config file
npm error gyp verb build/config.gypi writing out config file: /Users/roncsak/Herd/akaunting/node_modules/node-sass/build/config.gypi
npm error gyp verb config.gypi checking for gypi file: /Users/roncsak/Herd/akaunting/node_modules/node-sass/config.gypi
npm error gyp verb common.gypi checking for gypi file: /Users/roncsak/Herd/akaunting/node_modules/node-sass/common.gypi
npm error gyp verb gyp gyp format was not specified; forcing "make"
npm error gyp info spawn /opt/homebrew/opt/[email protected]/bin/python3.12
npm error gyp info spawn args [
npm error gyp info spawn args   '/Users/roncsak/Herd/akaunting/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args   'binding.gyp',
npm error gyp info spawn args   '-f',
npm error gyp info spawn args   'make',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   '/Users/roncsak/Herd/akaunting/node_modules/node-sass/build/config.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   '/Users/roncsak/Herd/akaunting/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   '/Users/roncsak/Library/Caches/node-gyp/18.20.4/include/node/common.gypi',
npm error gyp info spawn args   '-Dlibrary=shared_library',
npm error gyp info spawn args   '-Dvisibility=default',
npm error gyp info spawn args   '-Dnode_root_dir=/Users/roncsak/Library/Caches/node-gyp/18.20.4',
npm error gyp info spawn args   '-Dnode_gyp_dir=/Users/roncsak/Herd/akaunting/node_modules/node-gyp',
npm error gyp info spawn args   '-Dnode_lib_file=/Users/roncsak/Library/Caches/node-gyp/18.20.4/<(target_arch)/node.lib',
npm error gyp info spawn args   '-Dmodule_root_dir=/Users/roncsak/Herd/akaunting/node_modules/node-sass',
npm error gyp info spawn args   '-Dnode_engine=v8',
npm error gyp info spawn args   '--depth=.',
npm error gyp info spawn args   '--no-parallel',
npm error gyp info spawn args   '--generator-output',
npm error gyp info spawn args   'build',
npm error gyp info spawn args   '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error Traceback (most recent call last):
npm error   File "/Users/roncsak/Herd/akaunting/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module>
npm error     import gyp  # noqa: E402
npm error     ^^^^^^^^^^
npm error   File "/Users/roncsak/Herd/akaunting/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module>
npm error     import gyp.input
npm error   File "/Users/roncsak/Herd/akaunting/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module>
npm error     from distutils.version import StrictVersion
npm error ModuleNotFoundError: No module named 'distutils'
npm error gyp ERR! configure error 
npm error gyp ERR! stack Error: `gyp` failed with exit code: 1
npm error gyp ERR! stack     at ChildProcess.onCpExit (/Users/roncsak/Herd/akaunting/node_modules/node-gyp/lib/configure.js:259:16)
npm error gyp ERR! stack     at ChildProcess.emit (node:events:517:28)
npm error gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:292:12)
npm error gyp ERR! System Darwin 24.0.0
npm error gyp ERR! command "/Users/roncsak/.nvm/versions/node/v18.20.4/bin/node" "/Users/roncsak/Herd/akaunting/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm error gyp ERR! cwd /Users/roncsak/Herd/akaunting/node_modules/node-sass
npm error gyp ERR! node -v v18.20.4
npm error gyp ERR! node-gyp -v v8.4.1
npm error gyp ERR! not ok 
npm error Build failed with error code: 1

Additional comments

No response

Relevant log output

0 verbose cli /Users/roncsak/.nvm/versions/node/v18.20.4/bin/node /Users/roncsak/.nvm/versions/node/v18.20.4/bin/npm
1 info using [email protected]
2 info using [email protected]
3 silly config:load:file:/Users/roncsak/.nvm/versions/node/v18.20.4/lib/node_modules/npm/npmrc
4 silly config:load:file:/Users/roncsak/Herd/akaunting/.npmrc
5 silly config:load:file:/Users/roncsak/.npmrc
6 silly config:load:file:/Users/roncsak/.nvm/versions/node/v18.20.4/etc/npmrc
7 verbose title npm install
8 verbose argv "install"
9 verbose logfile logs-max:10 dir:/Users/roncsak/.npm/_logs/2024-10-17T09_54_47_311Z-
10 verbose logfile /Users/roncsak/.npm/_logs/2024-10-17T09_54_47_311Z-debug-0.log
11 silly logfile start cleaning logs, removing 1 files
12 silly logfile done cleaning log files
13 silly idealTree buildDeps
14 warn EBADENGINE Unsupported engine {
14 warn EBADENGINE   package: '[email protected]',
14 warn EBADENGINE   required: { node: '>=0.8 <=9' },
14 warn EBADENGINE   current: { node: 'v18.20.4', npm: '10.7.0' }
14 warn EBADENGINE }
17 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 2001ms
18 silly audit report {
18 silly audit report   '@sentry/browser': [
18 silly audit report     {
18 silly audit report       id: 1099838,
18 silly audit report       url: 'https://github.com/advisories/GHSA-593m-55hh-j8gv',
18 silly audit report       title: 'Sentry SDK Prototype Pollution gadget in JavaScript SDKs',
18 silly audit report       severity: 'moderate',
18 silly audit report       vulnerable_versions: '<7.119.1',
18 silly audit report       cwe: [Array],
18 silly audit report       cvss: [Object]
18 silly audit report     }
18 silly audit report   ],
18 silly audit report   'body-parser': [
18 silly audit report     {
18 silly audit report       id: 1099520,
18 silly audit report       url: 'https://github.com/advisories/GHSA-qwcr-r2fm-qrc7',
18 silly audit report       title: 'body-parser vulnerable to denial of service when url encoding is enabled',
18 silly audit report       severity: 'high',
18 silly audit report       vulnerable_versions: '<1.20.3',
18 silly audit report       cwe: [Array],
18 silly audit report       cvss: [Object]
18 silly audit report     }
18 silly audit report   ],
18 silly audit report   qs: [
18 silly audit report     {
18 silly audit report       id: 1096470,
18 silly audit report       url: 'https://github.com/advisories/GHSA-hrpp-h998-j3pp',
18 silly audit report       title: 'qs vulnerable to Prototype Pollution',
18 silly audit report       severity: 'high',
18 silly audit report       vulnerable_versions: '>=6.5.0 <6.5.3',
18 silly audit report       cwe: [Array],
18 silly audit report       cvss: [Object]
18 silly audit report     }
18 silly audit report   ],
18 silly audit report   cookie: [
18 silly audit report     {
18 silly audit report       id: 1099846,
18 silly audit report       url: 'https://github.com/advisories/GHSA-pxg6-pf52-xh8x',
18 silly audit report       title: 'cookie accepts cookie name, path, and domain with out of bounds characters',
18 silly audit report       severity: 'low',
18 silly audit report       vulnerable_versions: '<0.7.0',
18 silly audit report       cwe: [Array],
18 silly audit report       cvss: [Object]
18 silly audit report     }
18 silly audit report   ],
18 silly audit report   express: [
18 silly audit report     {
18 silly audit report       id: 1099529,
18 silly audit report       url: 'https://github.com/advisories/GHSA-qw6h-vgh9-j6wx',
18 silly audit report       title: 'express vulnerable to XSS via response.redirect()',
18 silly audit report       severity: 'moderate',
18 silly audit report       vulnerable_versions: '<4.20.0',
18 silly audit report       cwe: [Array],
18 silly audit report       cvss: [Object]
18 silly audit report     }
18 silly audit report   ],
18 silly audit report   micromatch: [
18 silly audit report     {
18 silly audit report       id: 1098681,
18 silly audit report       url: 'https://github.com/advisories/GHSA-952p-6rrq-rcjv',
18 silly audit report       title: 'Regular Expression Denial of Service (ReDoS) in micromatch',
18 silly audit report       severity: 'moderate',
18 silly audit report       vulnerable_versions: '<4.0.8',
18 silly audit report       cwe: [Array],
18 silly audit report       cvss: [Object]
18 silly audit report     }
18 silly audit report   ],
18 silly audit report   'path-to-regexp': [
18 silly audit report     {
18 silly audit report       id: 1099562,
18 silly audit report       url: 'https://github.com/advisories/GHSA-9wv6-86v2-598j',
18 silly audit report       title: 'path-to-regexp outputs backtracking regular expressions',
18 silly audit report       severity: 'high',
18 silly audit report       vulnerable_versions: '<0.1.10',
18 silly audit report       cwe: [Array],
18 silly audit report       cvss: [Object]
18 silly audit report     }
18 silly audit report   ],
18 silly audit report   quill: [
18 silly audit report     {
18 silly audit report       id: 1098574,
18 silly audit report       url: 'https://github.com/advisories/GHSA-4943-9vgg-gr5r',
18 silly audit report       title: 'Cross-site Scripting in quill',
18 silly audit report       severity: 'moderate',
18 silly audit report       vulnerable_versions: '<=1.3.7',
18 silly audit report       cwe: [Array],
18 silly audit report       cvss: [Object]
18 silly audit report     }
18 silly audit report   ],
18 silly audit report   send: [
18 silly audit report     {
18 silly audit report       id: 1099525,
18 silly audit report       url: 'https://github.com/advisories/GHSA-m6fv-jmcg-4jfg',
18 silly audit report       title: 'send vulnerable to template injection that can lead to XSS',
18 silly audit report       severity: 'moderate',
18 silly audit report       vulnerable_versions: '<0.19.0',
18 silly audit report       cwe: [Array],
18 silly audit report       cvss: [Object]
18 silly audit report     }
18 silly audit report   ],
18 silly audit report   'serve-static': [
18 silly audit report     {
18 silly audit report       id: 1099527,
18 silly audit report       url: 'https://github.com/advisories/GHSA-cm22-4g7w-348p',
18 silly audit report       title: 'serve-static vulnerable to template injection that can lead to XSS',
18 silly audit report       severity: 'moderate',
18 silly audit report       vulnerable_versions: '<1.16.0',
18 silly audit report       cwe: [Array],
18 silly audit report       cvss: [Object]
18 silly audit report     }
18 silly audit report   ],
18 silly audit report   'vue-template-compiler': [
18 silly audit report     {
18 silly audit report       id: 1098721,
18 silly audit report       url: 'https://github.com/advisories/GHSA-g3ch-rx76-35fx',
18 silly audit report       title: 'vue-template-compiler vulnerable to client-side Cross-Site Scripting (XSS)',
18 silly audit report       severity: 'moderate',
18 silly audit report       vulnerable_versions: '>=2.0.0 <3.0.0',
18 silly audit report       cwe: [Array],
18 silly audit report       cvss: [Object]
18 silly audit report     }
18 silly audit report   ],
18 silly audit report   webpack: [
18 silly audit report     {
18 silly audit report       id: 1099351,
18 silly audit report       url: 'https://github.com/advisories/GHSA-4vvj-4cpr-p986',
18 silly audit report       title: "Webpack's AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSS",
18 silly audit report       severity: 'moderate',
18 silly audit report       vulnerable_versions: '>=5.0.0-alpha.0 <5.94.0',
18 silly audit report       cwe: [Array],
18 silly audit report       cvss: [Object]
18 silly audit report     }
18 silly audit report   ]
18 silly audit report }
19 warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
20 warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
21 warn deprecated [email protected]: 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
22 warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
23 warn deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
24 warn deprecated [email protected]: This package is no longer supported.
25 warn deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
26 warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
27 warn deprecated [email protected]: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog
28 warn deprecated [email protected]: This package is no longer supported.
29 warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
30 warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
31 warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
32 warn deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
33 warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
34 http fetch GET 200 https://registry.npmjs.org/@sentry%2fbrowser 1835ms (cache revalidated)
35 http fetch GET 200 https://registry.npmjs.org/express 1848ms (cache revalidated)
36 http fetch GET 200 https://registry.npmjs.org/micromatch 1853ms (cache revalidated)
37 http fetch GET 200 https://registry.npmjs.org/vue-template-compiler 1853ms (cache revalidated)
38 http fetch GET 200 https://registry.npmjs.org/path-to-regexp 1860ms (cache revalidated)
39 http fetch GET 200 https://registry.npmjs.org/send 1861ms (cache revalidated)
40 http fetch GET 200 https://registry.npmjs.org/body-parser 1862ms (cache revalidated)
41 warn deprecated [email protected]: This package is no longer supported.
42 http fetch GET 200 https://registry.npmjs.org/qs 1868ms (cache revalidated)
43 http fetch GET 200 https://registry.npmjs.org/cookie 1877ms (cache revalidated)
44 http fetch GET 200 https://registry.npmjs.org/quill 1877ms (cache revalidated)
45 http fetch GET 200 https://registry.npmjs.org/webpack 1884ms (cache revalidated)
46 http fetch GET 200 https://registry.npmjs.org/serve-static 1896ms (cache revalidated)
47 warn deprecated [email protected]: 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.
48 warn deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
49 http fetch GET 200 https://registry.npmjs.org/@sentry%2fvue 692ms (cache revalidated)
50 warn deprecated @themesberg/[email protected]: WARNING: This project has been renamed to flowbite. Install using flowbite instead.
51 http fetch GET 200 https://registry.npmjs.org/tailwind 281ms (cache revalidated)
52 http fetch GET 200 https://registry.npmjs.org/webpack-dev-server 177ms (cache revalidated)
53 http fetch GET 200 https://registry.npmjs.org/fast-glob 197ms (cache revalidated)
54 http fetch GET 200 https://registry.npmjs.org/tailwindcss 204ms (cache revalidated)
55 http fetch GET 200 https://registry.npmjs.org/eslint-webpack-plugin 254ms (cache revalidated)
56 http fetch GET 200 https://registry.npmjs.org/http-proxy-middleware 276ms (cache revalidated)
57 warn deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
58 http fetch GET 200 https://registry.npmjs.org/vue2-editor 169ms (cache revalidated)
59 http fetch GET 200 https://registry.npmjs.org/@vue%2fcli-service 168ms (cache revalidated)
60 http fetch GET 200 https://registry.npmjs.org/babel-loader 247ms (cache revalidated)
61 http fetch GET 200 https://registry.npmjs.org/style-loader 268ms (cache revalidated)
62 http fetch GET 200 https://registry.npmjs.org/css-loader 271ms (cache revalidated)
63 http fetch GET 200 https://registry.npmjs.org/html-webpack-plugin 282ms (cache revalidated)
64 http fetch GET 200 https://registry.npmjs.org/@webpack-cli%2fserve 286ms (cache revalidated)
65 http fetch GET 200 https://registry.npmjs.org/vue-loader 295ms (cache revalidated)
66 http fetch GET 200 https://registry.npmjs.org/file-loader 299ms (cache revalidated)
67 http fetch GET 200 https://registry.npmjs.org/@vue%2fcli-plugin-eslint 305ms (cache revalidated)
68 http fetch GET 200 https://registry.npmjs.org/@webpack-cli%2finfo 316ms (cache revalidated)
69 http fetch GET 200 https://registry.npmjs.org/@vue%2fcli-plugin-babel 319ms (cache revalidated)
70 http fetch GET 200 https://registry.npmjs.org/copy-webpack-plugin 317ms (cache revalidated)
71 http fetch GET 200 https://registry.npmjs.org/@soda%2ffriendly-errors-webpack-plugin 322ms (cache revalidated)
72 http fetch GET 200 https://registry.npmjs.org/webpack-cli 327ms (cache revalidated)
73 http fetch GET 200 https://registry.npmjs.org/url-loader 331ms (cache revalidated)
74 http fetch GET 200 https://registry.npmjs.org/laravel-mix 335ms (cache revalidated)
75 http fetch GET 200 https://registry.npmjs.org/thread-loader 339ms (cache revalidated)
76 http fetch GET 200 https://registry.npmjs.org/mini-css-extract-plugin 342ms (cache revalidated)
77 http fetch GET 200 https://registry.npmjs.org/sass-loader 344ms (cache revalidated)
78 http fetch GET 200 https://registry.npmjs.org/webpackbar 343ms (cache revalidated)
79 http fetch GET 200 https://registry.npmjs.org/terser-webpack-plugin 349ms (cache revalidated)
80 http fetch GET 200 https://registry.npmjs.org/css-minimizer-webpack-plugin 353ms (cache revalidated)
81 http fetch GET 200 https://registry.npmjs.org/webpack-dev-middleware 358ms (cache revalidated)
82 http fetch GET 200 https://registry.npmjs.org/@webpack-cli%2fconfigtest 364ms (cache revalidated)
83 http fetch GET 200 https://registry.npmjs.org/progress-webpack-plugin 367ms (cache revalidated)
84 http fetch GET 200 https://registry.npmjs.org/html-loader 384ms (cache revalidated)
85 http fetch GET 200 https://registry.npmjs.org/postcss-loader 441ms (cache revalidated)
86 http fetch GET 200 https://registry.npmjs.org/@vue%2fcli-plugin-router 146ms (cache revalidated)
87 http fetch GET 200 https://registry.npmjs.org/@vue%2fcli-plugin-vuex 217ms (cache revalidated)
88 warn deprecated [email protected]: Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead.
89 warn deprecated [email protected]: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.
90 warn deprecated [email protected]: 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.
91 info run [email protected] install node_modules/node-sass node scripts/install.js
92 info run [email protected] install node_modules/yorkie node bin/install.js
93 info run [email protected] install { code: 0, signal: null }
94 info run [email protected] install { code: 0, signal: null }
95 info run [email protected] postinstall node_modules/core-js node -e "try{require('./postinstall')}catch(e){}"
96 info run [email protected] postinstall node_modules/node-sass node scripts/build.js
97 info run [email protected] postinstall node_modules/babel-runtime/node_modules/core-js node -e "try{require('./postinstall')}catch(e){}"
98 info run [email protected] postinstall { code: 0, signal: null }
99 info run [email protected] postinstall { code: 0, signal: null }
100 info run [email protected] postinstall { code: 1, signal: null }
101 verbose stack Error: command failed
101 verbose stack     at ChildProcess.<anonymous> (/Users/roncsak/.nvm/versions/node/v18.20.4/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
101 verbose stack     at ChildProcess.emit (node:events:517:28)
101 verbose stack     at maybeClose (node:internal/child_process:1098:16)
101 verbose stack     at Socket.<anonymous> (node:internal/child_process:450:11)
101 verbose stack     at Socket.emit (node:events:517:28)
101 verbose stack     at Pipe.<anonymous> (node:net:350:12)
102 verbose pkgid [email protected]
103 verbose cwd /Users/roncsak/Herd/akaunting
104 verbose Darwin 24.0.0
105 verbose node v18.20.4
106 verbose npm  v10.7.0
107 error code 1
108 error path /Users/roncsak/Herd/akaunting/node_modules/node-sass
109 error command failed
110 error command sh -c node scripts/build.js
111 error Binary found at /Users/roncsak/Herd/akaunting/node_modules/node-sass/vendor/darwin-arm64-108/binding.node
111 error Testing binary
111 error Binary has a problem: Error: dlopen(/Users/roncsak/Herd/akaunting/node_modules/node-sass/vendor/darwin-arm64-108/binding.node, 0x0001): tried: '/Users/roncsak/Herd/akaunting/node_modules/node-sass/vendor/darwin-arm64-108/binding.node' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/roncsak/Herd/akaunting/node_modules/node-sass/vendor/darwin-arm64-108/binding.node' (no such file), '/Users/roncsak/Herd/akaunting/node_modules/node-sass/vendor/darwin-arm64-108/binding.node' (not a mach-o file)
111 error     at Module._extensions..node (node:internal/modules/cjs/loader:1460:18)
111 error     at Module.load (node:internal/modules/cjs/loader:1203:32)
111 error     at Module._load (node:internal/modules/cjs/loader:1019:12)
111 error     at Module.require (node:internal/modules/cjs/loader:1231:19)
111 error     at require (node:internal/modules/helpers:177:18)
111 error     at module.exports (/Users/roncsak/Herd/akaunting/node_modules/node-sass/lib/binding.js:19:10)
111 error     at Object.<anonymous> (/Users/roncsak/Herd/akaunting/node_modules/node-sass/lib/index.js:13:35)
111 error     at Module._compile (node:internal/modules/cjs/loader:1364:14)
111 error     at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
111 error     at Module.load (node:internal/modules/cjs/loader:1203:32) {
111 error   code: 'ERR_DLOPEN_FAILED'
111 error }
111 error Building the binary locally
111 error Building: /Users/roncsak/.nvm/versions/node/v18.20.4/bin/node /Users/roncsak/Herd/akaunting/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
112 error gyp info it worked if it ends with ok
112 error gyp verb cli [
112 error gyp verb cli   '/Users/roncsak/.nvm/versions/node/v18.20.4/bin/node',
112 error gyp verb cli   '/Users/roncsak/Herd/akaunting/node_modules/node-gyp/bin/node-gyp.js',
112 error gyp verb cli   'rebuild',
112 error gyp verb cli   '--verbose',
112 error gyp verb cli   '--libsass_ext=',
112 error gyp verb cli   '--libsass_cflags=',
112 error gyp verb cli   '--libsass_ldflags=',
112 error gyp verb cli   '--libsass_library='
112 error gyp verb cli ]
112 error gyp info using [email protected]
112 error gyp info using [email protected] | darwin | arm64
112 error gyp verb command rebuild []
112 error gyp verb command clean []
112 error gyp verb clean removing "build" directory
112 error gyp verb command configure []
112 error gyp verb find Python Python is not set from command line or npm configuration
112 error gyp verb find Python Python is not set from environment variable PYTHON
112 error gyp verb find Python checking if "python3" can be used
112 error gyp verb find Python - executing "python3" to get executable path
112 error gyp verb find Python - executable path is "/opt/homebrew/opt/[email protected]/bin/python3.12"
112 error gyp verb find Python - executing "/opt/homebrew/opt/[email protected]/bin/python3.12" to get version
112 error gyp verb find Python - version is "3.12.6"
112 error gyp info find Python using Python version 3.12.6 found at "/opt/homebrew/opt/[email protected]/bin/python3.12"
112 error gyp verb get node dir no --target version specified, falling back to host node version: 18.20.4
112 error gyp verb command install [ '18.20.4' ]
112 error gyp verb install input version string "18.20.4"
112 error gyp verb install installing version: 18.20.4
112 error gyp verb install --ensure was passed, so won't reinstall if already installed
112 error gyp verb install version is already installed, need to check "installVersion"
112 error gyp verb got "installVersion" 9
112 error gyp verb needs "installVersion" 9
112 error gyp verb install version is good
112 error gyp verb get node dir target node version installed: 18.20.4
112 error gyp verb build dir attempting to create "build" dir: /Users/roncsak/Herd/akaunting/node_modules/node-sass/build
112 error gyp verb build dir "build" dir needed to be created? Yes
112 error gyp verb build/config.gypi creating config file
112 error gyp verb build/config.gypi writing out config file: /Users/roncsak/Herd/akaunting/node_modules/node-sass/build/config.gypi
112 error gyp verb config.gypi checking for gypi file: /Users/roncsak/Herd/akaunting/node_modules/node-sass/config.gypi
112 error gyp verb common.gypi checking for gypi file: /Users/roncsak/Herd/akaunting/node_modules/node-sass/common.gypi
112 error gyp verb gyp gyp format was not specified; forcing "make"
112 error gyp info spawn /opt/homebrew/opt/[email protected]/bin/python3.12
112 error gyp info spawn args [
112 error gyp info spawn args   '/Users/roncsak/Herd/akaunting/node_modules/node-gyp/gyp/gyp_main.py',
112 error gyp info spawn args   'binding.gyp',
112 error gyp info spawn args   '-f',
112 error gyp info spawn args   'make',
112 error gyp info spawn args   '-I',
112 error gyp info spawn args   '/Users/roncsak/Herd/akaunting/node_modules/node-sass/build/config.gypi',
112 error gyp info spawn args   '-I',
112 error gyp info spawn args   '/Users/roncsak/Herd/akaunting/node_modules/node-gyp/addon.gypi',
112 error gyp info spawn args   '-I',
112 error gyp info spawn args   '/Users/roncsak/Library/Caches/node-gyp/18.20.4/include/node/common.gypi',
112 error gyp info spawn args   '-Dlibrary=shared_library',
112 error gyp info spawn args   '-Dvisibility=default',
112 error gyp info spawn args   '-Dnode_root_dir=/Users/roncsak/Library/Caches/node-gyp/18.20.4',
112 error gyp info spawn args   '-Dnode_gyp_dir=/Users/roncsak/Herd/akaunting/node_modules/node-gyp',
112 error gyp info spawn args   '-Dnode_lib_file=/Users/roncsak/Library/Caches/node-gyp/18.20.4/<(target_arch)/node.lib',
112 error gyp info spawn args   '-Dmodule_root_dir=/Users/roncsak/Herd/akaunting/node_modules/node-sass',
112 error gyp info spawn args   '-Dnode_engine=v8',
112 error gyp info spawn args   '--depth=.',
112 error gyp info spawn args   '--no-parallel',
112 error gyp info spawn args   '--generator-output',
112 error gyp info spawn args   'build',
112 error gyp info spawn args   '-Goutput_dir=.'
112 error gyp info spawn args ]
112 error Traceback (most recent call last):
112 error   File "/Users/roncsak/Herd/akaunting/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module>
112 error     import gyp  # noqa: E402
112 error     ^^^^^^^^^^
112 error   File "/Users/roncsak/Herd/akaunting/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module>
112 error     import gyp.input
112 error   File "/Users/roncsak/Herd/akaunting/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module>
112 error     from distutils.version import StrictVersion
112 error ModuleNotFoundError: No module named 'distutils'
112 error gyp ERR! configure error 
112 error gyp ERR! stack Error: `gyp` failed with exit code: 1
112 error gyp ERR! stack     at ChildProcess.onCpExit (/Users/roncsak/Herd/akaunting/node_modules/node-gyp/lib/configure.js:259:16)
112 error gyp ERR! stack     at ChildProcess.emit (node:events:517:28)
112 error gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:292:12)
112 error gyp ERR! System Darwin 24.0.0
112 error gyp ERR! command "/Users/roncsak/.nvm/versions/node/v18.20.4/bin/node" "/Users/roncsak/Herd/akaunting/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
112 error gyp ERR! cwd /Users/roncsak/Herd/akaunting/node_modules/node-sass
112 error gyp ERR! node -v v18.20.4
112 error gyp ERR! node-gyp -v v8.4.1
112 error gyp ERR! not ok 
112 error Build failed with error code: 1
113 verbose exit 1
114 verbose code 1
115 silly unfinished npm timer reify 1729158891224
116 silly unfinished npm timer reify:build 1729158904941
117 silly unfinished npm timer build 1729158904942
118 silly unfinished npm timer build:deps 1729158904942
119 silly unfinished npm timer build:run:postinstall 1729158906471
120 silly unfinished npm timer build:run:postinstall:node_modules/node-sass 1729158906473
121 error A complete log of this run can be found in: /Users/roncsak/.npm/_logs/2024-10-17T09_54_47_311Z-debug-0.log

roncsak avatar Oct 17 '24 10:10 roncsak