过去一天我一直在尝试解决某个问题,我可以自信地说我被卡住了。我一直在尝试按照指南将 CMV2 上传到 Devnet,但无济于事,将其用作我的资源:https ://docs.metaplex.com/candy-machine-v2/creating-candy-machine
我一直在尝试使用的代码是
ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts upload \
-e devnet \
-k ~/.config/solana/devnet.json \
-cp config.json \
-c example \
./assets
但这就是出现的情况
-e : The term '-e' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:5
+ -e devnet \
+ ~~
+ CategoryInfo : ObjectNotFound: (-e:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Acer> -k ~/.config/solana/devnet.json \
-k : The term '-k' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:5
+ -k ~/.config/solana/devnet.json \
+ ~~
+ CategoryInfo : ObjectNotFound: (-k:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Acer> -cp config.json \
-cp : The term '-cp' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
+ -cp config.json \
+ CategoryInfo : ObjectNotFound: (-cp:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Acer> -c example \
-c : The term '-c' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
At line:1 char:5
+ -c example \
+ ~~
+ CategoryInfo : ObjectNotFound: (-c:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
我非常有信心,我永远不会超过这一步。有很多无法执行的命令。我也尝试将它编译为一个命令行,但它也不起作用。
我试过使用
ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts upload -e devnet -k ~/.config/solana/devnet.json -cp config.json -c example ./assets
和
ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts upload \ -e devnet \ -k ~/.config/solana/devnet.json \ -cp config.json \ -c example \ ./assets
也没有工作