Open ct2034 opened 1 year ago
Hey!
It could be related to you running with sudo
. I'll try to see if I can reproduce.
I just had the same problem. It was caused by accidentally using an old node version (12). Using node 16 fixed the problem.
Ahh, interesting. Thanks for chiming in @gigerdo . @ct2034 Is that perhaps the same problem you are running into?
I was using node 8 and saw the same problem. Using node 16 fixed the problem.
@li-boxuan Thanks for chiming in. I might be able to catch this and warn the user with something like:
import semver from 'semver';
import { engines } from './package';
const version = engines.node;
if (!semver.satisfies(process.version, version)) {
console.log(`Required node version ${version} not satisfied with current version ${process.version}.`);
process.exit(1);
}
I installed the tool with
sudo npm install -g --unsafe-perm backport
. When I runbackport
, nothing happens. When I runnpx backport
i get:I created both config files according to https://github.com/sqren/backport/blob/main/docs/config-file-options.md