Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors while running the candy machine creation command #34

Open
poorva121999 opened this issue Mar 17, 2022 · 0 comments
Open

Errors while running the candy machine creation command #34

poorva121999 opened this issue Mar 17, 2022 · 0 comments

Comments

@poorva121999
Copy link

Hi Team,
I have been following the below article for setting up the minting website.
https://docs.metaplex.com/candy-machine-v2/creating-candy-machine

Currently, I am at the candy machine creation step but have been getting the below errors.

poorva@DESKTOP-9G4452V:/mnt/c/Users/Virtuos/Downloads/nft/metaplex$ ts-node /mnt/c/Users/Virtuos/Downloads/nft/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts upload -e devnet -k ~/.config/solana/pokemon-key.json -cp config.json -c example ./assets-pictures
/usr/lib/node_modules/ts-node/src/index.ts:820
return new TSError(diagnosticText, diagnosticCodes);
^
TSError: ⨯ Unable to compile TypeScript:
js/packages/cli/src/candy-machine-v2-cli.ts:4:10 - error TS2305: Module '"commander"' has no exported member 'InvalidArgumentError'.

4 import { InvalidArgumentError, program } from 'commander';
~~~~~~~~~~~~~~~~~~~~
js/packages/cli/src/candy-machine-v2-cli.ts:4:32 - error TS2305: Module '"commander"' has no exported member 'program'.

4 import { InvalidArgumentError, program } from 'commander';
~~~~~~~
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';
~~~~~~~~~~~~~~~~~~~~~~~
js/packages/cli/src/candy-machine-v2-cli.ts:41:17 - error TS2307: Cannot find module 'loglevel' or its corresponding type declarations.

41 import log from 'loglevel';
~~~~~~~~~~

at createTSError (/usr/lib/node_modules/ts-node/src/index.ts:820:12)
at reportTSError (/usr/lib/node_modules/ts-node/src/index.ts:824:19)
at getOutput (/usr/lib/node_modules/ts-node/src/index.ts:1014:36)
at Object.compile (/usr/lib/node_modules/ts-node/src/index.ts:1322:43)
at Module.m._compile (/usr/lib/node_modules/ts-node/src/index.ts:1454:30)
at Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Object.require.extensions.<computed> [as .ts] (/usr/lib/node_modules/ts-node/src/index.ts:1458:12)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) {

diagnosticCodes: [ 2305, 2305, 2307, 2307 ]
}

I tried downgrading the node versions as a part of the resolution for the above errors, but that too didn't work.

Kindly help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant