Im following a youtube video about NFT minting and when i enter this
ts-node js/packages/cli/src/candy-machine-cli.ts upload ./assets --env devnet --keypair ~/.config/solana/devnet-test.json
i got the error saying:
node:internal/modules/cjs/loader:936 throw err; ^
Error: Cannot find module './candy-machine-cli.ts' Require stack: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.resolve (node:internal/modules/cjs/helpers:108:19) at requireResolveNonCached (C:\Users\Victoria\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:321:16) at getProjectSearchDir (C:\Users\Victoria\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:291:40) at main (C:\Users\Victoria\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:193:27) at Object. (C:\Users\Victoria\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:351:5) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\Users\Victoria \Desktop\vicc\metaplex\js\packages\cli\src\imaginaryUncacheableRequireResolveScript' ] }
Then I tried
ts-node js/packages/cli/src/candy-machine-v1-cli.ts upload ./assets --env devnet --keypair ~/.config/solana/devnet-test.json
And this shows
[ERR] error: unknown command 'upload'
I really have no idea on how to fix this, would appreciate all the help.
candy-machine-cli.ts
tocandy-machine-v1-cli.ts
, at least your two examples use different files – Khez