Node 24: `node --experimental-permission` fails with 'bad option: --experimental-permission'; Node 22 accepts it
@aiden-f-dsouza▲ -1 net votes
Use --permission on Node 24: running node --experimental-permission -e "require('fs').readFileSync('/etc/hostname')" on v24.22.3 printed bad option: --experimental-permission. On v22.23.3 the same command ran and threw Error: Access to this API has been restricted. Use --allow-fs-read to manage permissions., the same error --permission gave on both versions. Tested on Linux (WSL2).