【问题标题】:Upload problems with Candy-machine-v2/ problems with folderCandy-machine-v2 上传问题/文件夹问题
【发布时间】:2022-03-07 16:24:19
【问题描述】:

我似乎无法执行上传操作。我试图从相对变为绝对,但它一直给出同样的错误。 -c 标志(带有图像 + json 的目录)不起作用。 其他标志正常工作。 可能是什么问题?

PS C:\Users\User\Documents\nftmint\~> ts-node C:\Users\User\Documents\nftmint\~\~\metaplex\js\packages\cli\src\candy-machine-v2-cli.ts upload     -e devnet     -k C:\Users\User\~\.config\solana     -cp config.json   -c example 
C:\Users\User\Documents\nftmint\~\~\metaplex\js\assets\images
Error: EISDIR: illegal operation on a directory, read
    at Object.readSync (node:fs:723:3)
    at tryReadSync (node:fs:433:20)
    at Object.readFileSync (node:fs:479:19)
    at loadWalletKey (C:\Users\User\Documents\nftmint\~\~\metaplex\js\packages\cli\src\helpers\accounts.ts:571:34)
    at Command.<anonymous> (C:\Users\User\Documents\nftmint\~\~\metaplex\js\packages\cli\src\candy-machine-v2-cli.ts:84:40)
    at Command.listener [as _actionHandler] (C:\Users\User\Documents\nftmint\~\~\metaplex\js\packages\cli\node_modules\commander\lib\command.js:488:17)
    at C:\Users\User\Documents\nftmint\~\~\metaplex\js\packages\cli\node_modules\commander\lib\command.js:1227:65
    at Command._chainOrCall (C:\Users\User\Documents\nftmint\~\~\metaplex\js\packages\cli\node_modules\commander\lib\command.js:1144:12)
    at Command._parseCommand (C:\Users\User\Documents\nftmint\~\~\metaplex\js\packages\cli\node_modules\commander\lib\command.js:1227:27)
    at Command._dispatchSubcommand (C:\Users\User\Documents\nftmint\~\~\metaplex\js\packages\cli\node_modules\commander\lib\command.js:1050:25) {
  errno: -4068,
  syscall: 'read',
  code: 'EISDIR'
}

【问题讨论】:

    标签: javascript node.js candy-machine


    【解决方案1】:

    从这里的 metaplex 文档中引用:https://docs.metaplex.com/candy-machine-v2/creating-candy-machine

    -c 不是包含图像+json 对的目录。这是一个 可选 标志,用于指定 .cache 文件的位置。没有必要,因为在您运行上传 cmd 之前不会创建 .cache 文件。

    在说出上述内容时,您可能想要运行的 cmd 是:

    ts-node C:\Users\User\Documents\nftmint\~\~\metaplex\js\packages\cli\src\candy-machine-v2-cli.ts upload -e devnet -k C:\Users\User\~\.config\solana.json -cp config.json ./assets,其中 assets 文件夹包含从 0.png 和 0.json 到 n.png 和 n.json 命名的图像和 json 对。

    【讨论】:

      猜你喜欢
      • 2017-01-23
      • 1970-01-01
      • 1970-01-01
      • 2010-10-17
      相关资源
      最近更新 更多