nioc / xmpp-web

Lightweight web chat client for XMPP server
GNU Affero General Public License v3.0
133 stars 18 forks source link

Can't Build From sources #106

Closed ghost closed 12 months ago

ghost commented 1 year ago

Describe the bug

Trying the steps to build from source im facing this error

`/usr/src/xmpp-web/node_modules/esbuild/install.js:115 } catch { ^

SyntaxError: Unexpected token { at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:617:28) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Function.Module.runMain (module.js:694:10) at startup (bootstrap_node.js:204:16) at bootstrap_node.js:625:3 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! esbuild@0.16.17 postinstall: node install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the esbuild@0.16.17 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2023-08-25T18_07_52_140Z-debug.log `

Steps to reproduce

git clone https://github.com/nioc/xmpp-web.git xmpp-web cd xmpp-web npm ci

Expected behavior

this should run the process to build the client with no issues

Relevant log

2742 info lifecycle @esbuild/darwin-x64@0.16.17~postinstall: @esbuild/darwin-x64@0.16.17
2743 silly buildTree linking @esbuild/darwin-arm64@0.16.17
2744 info lifecycle @esbuild/darwin-arm64@0.16.17~preinstall: @esbuild/darwin-arm64@0.16.17
2745 info lifecycle @esbuild/darwin-arm64@0.16.17~install: @esbuild/darwin-arm64@0.16.17
2746 info lifecycle @esbuild/darwin-arm64@0.16.17~postinstall: @esbuild/darwin-arm64@0.16.17
2747 silly buildTree linking @esbuild/android-x64@0.16.17
2748 info lifecycle @esbuild/android-x64@0.16.17~preinstall: @esbuild/android-x64@0.16.17
2749 info lifecycle @esbuild/android-x64@0.16.17~install: @esbuild/android-x64@0.16.17
2750 info lifecycle @esbuild/android-x64@0.16.17~postinstall: @esbuild/android-x64@0.16.17
2751 silly buildTree linking @esbuild/android-arm64@0.16.17
2752 info lifecycle @esbuild/android-arm64@0.16.17~preinstall: @esbuild/android-arm64@0.16.17
2753 info lifecycle @esbuild/android-arm64@0.16.17~install: @esbuild/android-arm64@0.16.17
2754 info lifecycle @esbuild/android-arm64@0.16.17~postinstall: @esbuild/android-arm64@0.16.17
2755 silly linkStuff esbuild@0.16.17 has /usr/src/xmpp-web/node_modules as its parent node_modules
2756 verbose linkBins [ { esbuild: 'bin/esbuild' },
2756 verbose linkBins   '/usr/src/xmpp-web/node_modules/.bin',
2756 verbose linkBins   false ]
2757 info lifecycle esbuild@0.16.17~install: esbuild@0.16.17
2758 info lifecycle esbuild@0.16.17~postinstall: esbuild@0.16.17
2759 verbose lifecycle esbuild@0.16.17~postinstall: unsafe-perm in lifecycle false
2760 verbose lifecycle esbuild@0.16.17~postinstall: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/src/xmpp-web/node_modules/esbuild/node_modules/.bin:/usr/src/xmpp-web/node_modul$
2761 verbose lifecycle esbuild@0.16.17~postinstall: CWD: /usr/src/xmpp-web/node_modules/esbuild
2762 silly lifecycle esbuild@0.16.17~postinstall: Args: [ '-c', 'node install.js' ]
2763 silly lifecycle esbuild@0.16.17~postinstall: Returned: code: 1  signal: null
2764 info lifecycle esbuild@0.16.17~postinstall: Failed to exec postinstall script
2765 verbose teardown shutting down workers.
2766 info teardown Done in 0.001s
2767 verbose stack Error: esbuild@0.16.17 postinstall: `node install.js`
2767 verbose stack Exit status 1
2767 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
2767 verbose stack     at emitTwo (events.js:126:13)
2767 verbose stack     at EventEmitter.emit (events.js:214:7)
2767 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
2767 verbose stack     at emitTwo (events.js:126:13)
2767 verbose stack     at ChildProcess.emit (events.js:214:7)
2767 verbose stack     at maybeClose (internal/child_process.js:915:16)
2767 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
2768 verbose pkgid esbuild@0.16.17
2769 verbose cwd /usr/src/xmpp-web
2770 verbose Linux 3.10.0-1127.19.1.el7.x86_64
2771 verbose argv "/usr/bin/node" "/usr/bin/npm" "ci"
2772 verbose node v8.16.0
2773 verbose npm  v6.4.1

local.js configuration

No response

XMPP-web version

0.10.0

Installation

Build from source

XMPP server(s)

other

Browser(s)

Chrome

Device(s)

desktop

Other information

No response

nioc commented 1 year ago

Hello, I tried on a fresh folder and having no trouble (npm 8.19 and node 16.20). Can you provide your npm/node installed versions (node -v && npm -v)?

ghost commented 1 year ago

Node>> v8.16.0 NPM>> 6.4.1

On Fri, Aug 25, 2023 at 9:03 PM Nicolas @.***> wrote:

Hello, I tried on a fresh folder and having no trouble (npm 8.19 and node 16.20). Can you provide your npm/node installed versions (node -v && npm -v)?

— Reply to this email directly, view it on GitHub https://github.com/nioc/xmpp-web/issues/106#issuecomment-1694093149, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALVTPV3HWVMIELEVZRLGXTXXFDPVANCNFSM6AAAAAA37D77VA . You are receiving this because you authored the thread.Message ID: @.***>

-- Gilbert N. Arias Feliz

Unix/Linux Administrator Windows Server Administrator VoIP Engineer BackTrack Network Security Tester Team

[Unos Sueñan... Otros Hacemos Realidad Nuestros Sueños...]

nioc commented 12 months ago

I suggest a node upgrade since vite require at least v14. Otherwise, you can use the dev docker image.

ghost commented 12 months ago

Thanks, I will upgrade node

On Sat, Aug 26, 2023 at 8:43 AM Nicolas @.***> wrote:

I suggest a node upgrade since vite require at least v14 https://vitejs.dev/guide/#scaffolding-your-first-vite-project. Otherwise, you can use the dev docker image https://github.com/nioc/xmpp-web/blob/master/CONTRIBUTING.md#2b-or-dev-tools-by-using-dockerfile-dev .

— Reply to this email directly, view it on GitHub https://github.com/nioc/xmpp-web/issues/106#issuecomment-1694333147, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALVTPU2QAFTLE7OWXY75OTXXHVQTANCNFSM6AAAAAA37D77VA . You are receiving this because you authored the thread.Message ID: @.***>

-- Gilbert N. Arias Feliz

Unix/Linux Administrator Windows Server Administrator VoIP Engineer BackTrack Network Security Tester Team

[Unos Sueñan... Otros Hacemos Realidad Nuestros Sueños...]

nioc commented 12 months ago

I close this issue, feel free to reopen if required.