'I am studying about sol miniting website on Youtube and error in Creating the Candy Machine step(Candy Machine V2) I shown my file system image
This is my code run on terminal
ts-node ~/solana-nft/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts upload \
-e devnet \
-k keypair.json \
-cp config.json \
./assets
This is error message
node:internal/modules/cjs/loader:942
throw err;
^
Error: Cannot find module './candy-machine-v2-cli.ts'
Require stack:
- /root/solana-nft/metaplex/js/packages/cli/src/imaginaryUncacheableRequireResolveScript
at Module._resolveFilename (node:internal/modules/cjs/loader:939:15)
at Function.resolve (node:internal/modules/cjs/helpers:108:19)
at requireResolveNonCached (/usr/local/lib/node_modules/ts-node/dist/bin.js:489:16)
at getProjectSearchDir (/usr/local/lib/node_modules/ts-node/dist/bin.js:459:40)
at phase3 (/usr/local/lib/node_modules/ts-node/dist/bin.js:263:27)
at bootstrap (/usr/local/lib/node_modules/ts-node/dist/bin.js:44:30)
at main (/usr/local/lib/node_modules/ts-node/dist/bin.js:32:12)
at Object.<anonymous> (/usr/local/lib/node_modules/ts-node/dist/bin.js:519:5)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/root/solana-nft/metaplex/js/packages/cli/src/imaginaryUncacheableRequireResolveScript'
]
}
Node.js v18.0.0

Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
