'trying to run an generate art configuration in metaplex and it keeps returning this. I have tried changing up just about everything

desktop % ts-node ./metaplex/js/packages/cli/src/candy-machine-v2-cli.ts generate_art_configuration traits /usr/local/lib/node_modules/ts-node/src/index.ts:820 return new TSError(diagnosticText, diagnosticCodes); ^ TSError: ⨯ Unable to compile TypeScript: 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: Cannot 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: Cannot 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: Cannot find module 'mime' or its corresponding type declarations.

45 import { getType } from 'mime'; ~~~~~~

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

diagnosticCodes: [ 2307, 2307, 2307, 2307, 2307 ]



Solution 1:[1]

It looks like you haven't yarn installed the JS folder.

But also a few months back the art generation was removed from the Metaplex repo. It was saved and extracted from an older repo by Halaprix and can be found here though if you wish to continue using it. https://github.com/halaprix/simple-NFT-generator

Alternatively you could also use Hashlips which is the most widely used generator currently. https://github.com/HashLips

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tony Boyle