Withdrawing candy machine rent

Hello, I created a candy machine for 10k nfts a couple months ago. I need to withdraw rent, however the server I was running it on expired. I have the wallet setup for the address I created the candy machine from. I downloaded metaplex and got the necessary dependencies.

I run
ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts withdraw CJ9Jhvk6EMjgU5BuURKejE2FqjCBxViA89fxMLoT541w
-e mainnet-beta
-k ~/.config/solana/id.json

And I get the error
/usr/local/lib/node_modules/ts-node/src/index.ts:843
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
{ TSError: ⨯ Unable to compile TypeScript:
metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:2:21 - error TS2307: Cannot find module ‘fs’ or its corresponding type declarations.

2 import * as fs from ‘fs’;
~~~~
metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:3:23 - error TS2307: Cannot find module ‘path’ or its corresponding type declarations.

3 import * as path from ‘path’;
~~~~~~
metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:4:47 - error TS2307: Cannot find module ‘commander’ or its corresponding type declarations.

4 import { InvalidArgumentError, program } from ‘commander’;
~~~~~~~~~~~
metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:5:25 - error TS2307: Cannot find module ‘@project-serum/anchor’ or its corresponding type declarations.

5 import * as anchor from ‘@project-serum/anchor’;
~~~~~~~~~~~~~~~~~~~~~~~
metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:14:45 - error TS2307: Canno t find module ‘@solana/web3.js’ or its corresponding type declarations.

14 import { PublicKey, LAMPORTS_PER_SOL } from ‘@solana/web3.js’;
~~~~~~~~~~~~~~~~~
metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:41:17 - error TS2307: Canno t find module ‘loglevel’ or its corresponding type declarations.

41 import log from ‘loglevel’;
~~~~~~~~~~
metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:45:25 - error TS2307: Canno t find module ‘mime’ or its corresponding type declarations.

45 import { getType } from ‘mime’;
~~~~~~
metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:50:22 - error TS2307: Canno t find module ‘@project-serum/anchor/dist/cjs/utils/bytes’ or its corresponding type declarations.

50 import { bs58 } from ‘@project-serum/anchor/dist/cjs/utils/bytes’;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:84:20 - error TS2591: Canno t find name ‘require’. Do you need to install type definitions for node? Try np m i --save-dev @types/node and then add ‘node’ to the types field in your tscon fig.

84 const revision = require(‘child_process’)
~~~~~~~
metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:305:7 - error TS2591: Canno t find name ‘process’. Do you need to install type definitions for node? Try np m i --save-dev @types/node and then add ‘node’ to the types field in your tscon fig.

305 process.exit(1);
~~~~~~~
metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:312:5 - error TS2591: Canno t find name ‘process’. Do you need to install type definitions for node? Try np m i --save-dev @types/node and then add ‘node’ to the types field in your tscon fig.

312 process.exit(0);
~~~~~~~
metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:509:32 - error TS2591: Cann ot find name ‘process’. Do you need to install type definitions for node? Try n pm i --save-dev @types/node and then add ‘node’ to the types field in your tsco nfig.

509 .map(file => path.join(process.cwd(), val, file));
~~~~~~~
metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:1253:15 - error TS2591: Can not 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 tsc onfig.

1253 program.parse(process.argv);
~~~~~~~

at createTSError (/usr/local/lib/node_modules/ts-node/src/index.ts:843:12)
at reportTSError (/usr/local/lib/node_modules/ts-node/src/index.ts:847:19)
at getOutput (/usr/local/lib/node_modules/ts-node/src/index.ts:1057:36)
at Object.compile (/usr/local/lib/node_modules/ts-node/src/index.ts:1411:41)
at Module.m._compile (/usr/local/lib/node_modules/ts-node/src/index.ts:1596:                                                                             30)
at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Object.require.extensions.(anonymous function) [as .ts] (/usr/local/lib/n                                                                             ode_modules/ts-node/src/index.ts:1600:12)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)

diagnosticCodes:
[ 2307,
2307,
2307,
2307,
2307,
2307,
2307,
2307,
2591,
2591,
2591,
2591,
2591 ] }

How do I pull my money out?