#1144609 node-yargs-parser: FTBFS with node-typescript 6

#1144609#5
Date:
2026-08-16 23:03:11 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:node-yargs-parser, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   dh_auto_clean --buildsystem=nodejs
	rm -rf ./node_modules/.cache ./.nyc_output
	rm -rf types-yargs-parser/node_modules/.cache types-yargs-parser/.nyc_output
rm ./node_modules/.cache
unlink ./node_modules/@rollup/plugin-commonjs
Trying to remove ./node_modules/@rollup
unlink ./node_modules/@rollup/plugin-node-resolve
Trying to remove ./node_modules/@rollup
unlink ./node_modules/@types/node
Trying to remove ./node_modules/@types
rm types-yargs-parser/node_modules/.cache
rm ./node_modules/.cache
unlink ./node_modules/@rollup/plugin-commonjs
Trying to remove ./node_modules/@rollup
unlink ./node_modules/@rollup/plugin-node-resolve
Trying to remove ./node_modules/@rollup
unlink ./node_modules/@types/node
Trying to remove ./node_modules/@types
unlink node_modules/@types/yargs-parser
Trying to remove node_modules/@types
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure --buildsystem=nodejs
Link ./node_modules/@rollup/plugin-commonjs -> /usr/share/nodejs/@rollup/plugin-commonjs
Link ./node_modules/@rollup/plugin-node-resolve -> /usr/share/nodejs/@rollup/plugin-node-resolve
Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
Link node_modules/@types/yargs-parser -> ../../types-yargs-parser
Link node_modules/gts -> ../debian/build_modules/gts
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
tsc
lib/index.ts:10:24 - error TS2591: Cannot find name 'util'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

10 import { format } from 'util'
                          ~~~~~~

lib/index.ts:11:36 - error TS2591: Cannot find name 'path'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

11 import { normalize, resolve } from 'path'
                                      ~~~~~~

lib/index.ts:15:30 - error TS2591: Cannot find name 'fs'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

15 import { readFileSync } from 'fs'
                                ~~~~

lib/index.ts:19:25 - error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

19 const minNodeVersion = (process && process.env && process.env.YARGS_MIN_NODE_VERSION)
                           ~~~~~~~

lib/index.ts:19:36 - error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

19 const minNodeVersion = (process && process.env && process.env.YARGS_MIN_NODE_VERSION)
                                      ~~~~~~~

lib/index.ts:19:51 - error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

19 const minNodeVersion = (process && process.env && process.env.YARGS_MIN_NODE_VERSION)
                                                     ~~~~~~~

lib/index.ts:20:12 - error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

20   ? Number(process.env.YARGS_MIN_NODE_VERSION)
              ~~~~~~~

lib/index.ts:22:21 - error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

22 const nodeVersion = process?.versions?.node ?? process?.version?.slice(1)
                       ~~~~~~~

lib/index.ts:22:48 - error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

22 const nodeVersion = process?.versions?.node ?? process?.version?.slice(1)
                                                  ~~~~~~~

lib/index.ts:31:13 - error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

31 const env = process ? process.env as { [key: string]: string } : {}
               ~~~~~~~

lib/index.ts:31:23 - error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

31 const env = process ? process.env as { [key: string]: string } : {}
                         ~~~~~~~

lib/index.ts:33:8 - error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

33   cwd: process.cwd,
          ~~~~~~~

lib/index.ts:43:16 - error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

43     if (typeof require !== 'undefined') {
                  ~~~~~~~

lib/index.ts:44:14 - error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

44       return require(path)
                ~~~~~~~

tsconfig.json:8:25 - error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
  Visit https://aka.ms/ts6 for migration information.

8     "moduleResolution": "node",
                          ~~~~~~


Found 15 errors in 2 files.

Errors  Files
    14  lib/index.ts:10
     1  tsconfig.json:8
make[1]: *** [debian/rules:11: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1144609#8
Date:
2026-08-17 10:05:30 UTC
From:
To:
Hello,

Bug #1144609 in node-yargs-parser reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/js-team/node-yargs-parser/-/commit/e824d083fc78fbbb6f7822d9a078d2104425364b
------------------------------------------------------------------------
Fix FTBFS with TypeScript 6

Closes: #1144609
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1144609

#1144609#15
Date:
2026-08-17 10:19:29 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
node-yargs-parser, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1144609@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Xavier Guimard <yadd@debian.org> (supplier of updated node-yargs-parser package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 17 Aug 2026 11:33:28 +0200
Source: node-yargs-parser
Architecture: source
Version: 21.1.1+~21.0.0-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Xavier Guimard <yadd@debian.org>
Closes: 1144609
Changes:
 node-yargs-parser (21.1.1+~21.0.0-5) unstable; urgency=medium
 .
   * Team upload
   * Declare compliance with policy 4.7.4
   * Drop "Rules-Requires-Root: no"
   * Drop "Priority: optional"
   * debian/watch version 5
   * Fix FTBFS with TypeScript 6 (Closes: #1144609)
Checksums-Sha1:
 65aa45d5dabfb702c9118ae72cdc903de4299434 2570 node-yargs-parser_21.1.1+~21.0.0-5.dsc
 244cfc608e809d33af7a903fb6e91e7ac840318e 5648 node-yargs-parser_21.1.1+~21.0.0-5.debian.tar.xz
Checksums-Sha256:
 1ab46c4be68e898bfe8c705fe67f211679c07b6f7f31c9123d586a7dbc526b5e 2570 node-yargs-parser_21.1.1+~21.0.0-5.dsc
 47c063d0e30f5279ace9e4be2df5abf36e58669877bbefaff929c13e0e672623 5648 node-yargs-parser_21.1.1+~21.0.0-5.debian.tar.xz
Files:
 58b66a002d8812c0ad359000bd9c2974 2570 javascript optional node-yargs-parser_21.1.1+~21.0.0-5.dsc
 c199e207642788f5095a473d7c51fc02 5648 javascript optional node-yargs-parser_21.1.1+~21.0.0-5.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmqC3NYACgkQ9tdMp8mZ
7unZKA//YAhAcPGPsKOiV2LghXrvetJsTD9JVw6ir0Q6LhWmZ7isl8bIMi4YTtPc
Fcx+YuK9egC8FZizoQAqUKFQuZFgfg7GyuZTgW3w/TfjIM23tp82LjAb1/BALHpt
srBeHZnKdhj63mE5iB3a7dAuxevmt2iufChTAJf0wIAnD3rkehfH8Y13nEl61K88
zTFmrw7PnzGkm/KB9dotFC83QqQOe3MrE84snqlTxwIwRGeQfE6CqpTxX3k3V3jX
lA2VmumloCrxFVsC/Xab6JDgF48p5/JIStovKKnOYxO4IEsb8Ioi7sUdMKXYchPQ
oQJBrrx2m7aySG50TUlR/IKPXFWIV/eSF9OnzBEhGVOVqsL91m5LrdurhUTBBDqk
0GB//U8ySsFc9UJvZen+vHBzseeuvZfjqWXwTfYL5QhLplIf9XiJaHoH2L1b2Tsh
g04sTybyurixtdyo02qjp7n9Eqg+OSagT8DVpWxJIhZ68QJNC+uC23XmSvNGOX+z
xOFZ8KDQQggrl95PTbhIiZQVdMWplwWOJgjdbw8KojcHW8BaZOsi1m69Nu/4fwEu
NU4OufPAAtUJoYBmr7kluMoXbmwLYHUk/tWR6WXynV2Atax0lKLAo48senTboysR
7YcsluAwCXcurTocYugXBQBmwzWw5MQ4CWM4LH7HQ0tHOynDjgA=
=Isfs
-----END PGP SIGNATURE-----