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

Trouble with xterm-addon-ligatures while building #3055

Closed
rafalsk opened this issue Aug 25, 2020 · 3 comments
Closed

Trouble with xterm-addon-ligatures while building #3055

rafalsk opened this issue Aug 25, 2020 · 3 comments

Comments

@rafalsk
Copy link

rafalsk commented Aug 25, 2020

We've been trying to build XTerm, (after many roadblocks we've overcome) we're currently stuck at this: ideas? yarn in installed.

Preparing xterm-addon-ligatures npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! [email protected] package: webpack`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] package 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! C:\Users\rafal\AppData\Roaming\npm-cache_logs\2020-08-25T15_17_40_075Z-debug.log
error Command failed with exit code 2.
child_process.js:644
throw err;
^

Error: Command failed: yarn
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] package: webpack
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] package 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! C:\Users\rafal\AppData\Roaming\npm-cache_logs\2020-08-25T15_17_40_075Z-debug.log
error Command failed with exit code 2.

at checkExecSyncError (child_process.js:601:13)
at Object.execSync (child_process.js:641:13)
at files.forEach.folder (D:\xterm\bin\install-addons.js:47:14)
at Array.forEach (<anonymous>)
at fs.readdir (D:\xterm\bin\install-addons.js:28:11)
at FSReqWrap.oncomplete (fs.js:135:15)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] presetup: node ./bin/install-addons.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] presetup 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! C:\Users\rafal\AppData\Roaming\npm-cache_logs\2020-08-25T15_17_40_136Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prepare: npm run setup
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prepare 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! C:\Users\rafal\AppData\Roaming\npm-cache_logs\2020-08-25T15_17_40_167Z-debug.log`

Additional log info:
52 silly postinstall [email protected]
53 info lifecycle [email protected]postinstall: [email protected]
54 silly prepublish [email protected]
55 info lifecycle [email protected]
prepublish: [email protected]
56 info lifecycle [email protected]prepare: [email protected]
57 verbose lifecycle [email protected]
prepare: unsafe-perm in lifecycle true
58 verbose lifecycle [email protected]prepare: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;D:\xterm\node_modules.bin;C:\Users\rafal\Documents\ffmpeg-20190815-ddd92ba-win64-static\bin;D:\Oculus\Support\oculus-runtime;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\dotnet;C:\Users\rafal\AppData\Local\Programs\Python\Python36;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\nodejs;C:\Program Files (x86)\WinSCP;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\GnuWin32\bin;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Program Files\Mercurial;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files\MiKTeX 2.9\miktex\bin\x64;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common ;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\Gpg4win..\GnuPG\bin;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\PuTTY;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Users\rafal.windows-build-tools\python27;C:\Users\rafal.windows-build-tools\python27;C:\Users\rafal\AppData\Local\Microsoft\WindowsApps;C:\Users\rafal\AppData\Local\atom\bin;C:\Users\rafal\AppData\Local\Microsoft\WindowsApps;C:\Users\rafal\AppData\Roaming\npm;C:\Program Files (x86)\Nmap;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Users\rafal\Documents\vcpkg-master;C:\Users\rafal.dotnet\tools;C:\Program Files\Git\usr\bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin
59 verbose lifecycle [email protected]
prepare: CWD: D:\xterm
60 silly lifecycle [email protected]prepare: Args: [ '/d /s /c', 'npm run setup' ]
61 silly lifecycle [email protected]
prepare: Returned: code: 1 signal: null
62 info lifecycle [email protected]~prepare: Failed to exec prepare script
63 verbose stack Error: [email protected] prepare: npm run setup
63 verbose stack Exit status 1
63 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:280:16)
63 verbose stack at emitTwo (events.js:126:13)
63 verbose stack at EventEmitter.emit (events.js:214:7)
63 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
63 verbose stack at emitTwo (events.js:126:13)
63 verbose stack at ChildProcess.emit (events.js:214:7)
63 verbose stack at maybeClose (internal/child_process.js:925:16)
63 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
64 verbose pkgid [email protected]
65 verbose cwd D:\xterm
66 verbose Windows_NT 10.0.18363
67 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
68 verbose node v8.9.1
69 verbose npm v5.5.1
70 error code ELIFECYCLE
71 error errno 1
72 error [email protected] prepare: npm run setup
72 error Exit status 1
73 error Failed at the [email protected] prepare script.
73 error This is probably not a problem with npm. There is likely additional logging output above.
74 verbose exit [ 1, true ]

@rafalsk
Copy link
Author

rafalsk commented Aug 25, 2020

After we've removed the 'ligatures' addon from build process it went like what follows. there's no information whether it succeeded or not just that it's up-to-date whatever it means with some critically looking 'warnings' by the end.


`npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.

 [email protected] prepare D:\xterm
 npm run setup
[email protected] presetup D:\xterm
 node ./bin/install-addons.js
pulling addon dependencies...
Skipped xterm-addon-attach
Skipped xterm-addon-fit
Skipped xterm-addon-search
Skipped xterm-addon-serialize
Skipped xterm-addon-unicode11
Skipped xterm-addon-web-links
Skipped xterm-addon-webgl
 [email protected] setup D:\xterm
npm run build

[email protected] build D:\xterm tsc -b ./tsconfig.all.json

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\watchpack\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\watchpack-chokidar2\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN [email protected] requires a peer of canvas@^2.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.

up to date in 11.317s`

@Tyriar
Copy link
Member

Tyriar commented Sep 9, 2020

I've never had problems with this, I'm guessing you're missing some dependencies of one of the dependencies:

"dependencies": {
"font-finder": "^1.0.4",
"font-ligatures": "^1.3.3"
},
"devDependencies": {
"@types/sinon": "^5.0.1",
"axios": "^0.18.0",
"mkdirp": "0.5.5",
"sinon": "6.3.5",
"yauzl": "^2.10.0"
},

You could try install those deps manually and see if they error out and why.

@Tyriar
Copy link
Member

Tyriar commented Oct 19, 2021

/duplicate #958

@Tyriar Tyriar closed this as completed Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants