Programming WebRTC: npm run ssl-keys not working (page 4)

Windows 11 fully updated, added openssl to the PATH, node also installed. When running command:

npm run ssl-keys --keydir=“C:\dev\Certs” --numdays=1825

I got error:

req: Can’t parse “$npm_config_numdays” as a number
req: Non-positive number “$npm_config_numdays” for -days

I was able to generate the certificates by manually replacing the path and numdays:

openssl req -x509 -out C:\dev\Certs\localhost.crt -keyout C:\dev\Certs\localhost.key -newkey rsa:2048 -nodes -sha256 -days 1825 -subj ‘/CN=localhost’ -extensions EXT -config scripts/conf/self-signed.conf