Your docs say you need to deploy to Surge.sh using Node. I don't ever install any packages directly on my computer for security's sake, and I don't recommend you advise people to do that in your docs.
So I ran your package in Docker so it has proper security, but it fails. Why please? The container has access to the Internet, so that can't be the address failure.
docker run --init -it --rm --name "surge" -v ".:/app" -w "/app" node:24.0.1-alpine3.21 sh -c "npx surge";
Need to install the following packages:
surge@0.24.6
Ok to proceed? (y) y
npm warn deprecated inflight@1.0.6: 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 fstream@1.0.12: This package is no longer supported.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
npm warn deprecated uuid@3.4.0: 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 har-validator@5.1.5: this library is no longer supported
npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
Welcome to surge! (surge.sh)
Login or create surge account by entering email & password.
email: censored/surge@simplelogin.com
password:
/root/.npm/_npx/23158936acd5c32d/node_modules/surge/lib/util/helpers.js:203
if (e) throw e
^
Error: getaddrinfo EAI_AGAIN surge.surge.sh
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:122:26) {
errno: -3001,
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'surge.surge.sh'
}
Node.js v24.0.1
npm notice
npm notice New minor version of npm available! 11.3.0 -> 11.5.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.5.2
npm notice To update run: npm install -g npm@11.5.2
npm notice
Your docs say you need to deploy to Surge.sh using Node. I don't ever install any packages directly on my computer for security's sake, and I don't recommend you advise people to do that in your docs.
So I ran your package in Docker so it has proper security, but it fails. Why please? The container has access to the Internet, so that can't be the address failure.