简体   繁体   English

模块 gumdrop-cli.ts metaplex 出错

[英]Error with modules gumdrop-cli.ts metaplex

I've been testing metaplex and wanted to try testing gumdrop, I downloaded the gumdrop repo from here https://github.com/metaplex-foundation/gumdrop/ and tried running it but it didn't work.我一直在测试 metaplex 并想尝试测试 gumdrop,我从这里下载了 gumdrop 存储库https://github.com/metaplex-foundation/gumdrop/并尝试运行它,但它没有用。 I then placed it inside the original metaplex folder (~/metaplex/js/packages/gumdrop) as I thought that would maybe fix it but I now run into this error:然后我把它放在原来的 metaplex 文件夹(~/metaplex/js/packages/gumdrop)中,因为我认为这可能会修复它,但我现在遇到了这个错误:

C:\Users\Shady\AppData\Roaming\npm\node_modules\ts-node\src\index.ts:843 return new TSError(diagnosticText, diagnosticCodes, diagnostics); C:\Users\Shady\AppData\Roaming\npm\node_modules\ts-node\src\index.ts:843 return new TSError(diagnosticText, diagnosticCodes, diagnostics); ^ TSError: ⨯ Unable to compile TypeScript: ~/metaplex/js/packages/gumdrop/packages/cli/src/gumdrop-cli.ts:4:10 - error TS2305: Module '"commander"' has no exported member 'program'. ^ TSError:⨯ 无法编译 TypeScript:~/metaplex/js/packages/gumdrop/packages/cli/src/gumdrop-cli.ts:4:10 - 错误 TS2305:模块 '"commander"' 没有导出的成员 'program '。

4 import { program } from 'commander'; 4 从“指挥官”导入{程序}; ~~~~~~~ ~/metaplex/js/packages/gumdrop/packages/cli/src/gumdrop-cli.ts:11:8 - error TS2307: Cannot find module '@aws-sdk/client-sesv2' or its corresponding type declarations. ~~~~~~~ ~/metaplex/js/packages/gumdrop/packages/cli/src/gumdrop-cli.ts:11:8 - 错误 TS2307: 找不到模块 '@aws-sdk/client-sesv2' 或其对应的类型声明。

11 } from '@aws-sdk/client-sesv2'; 11}来自'@aws-sdk/client-sesv2'; ~~~~~~~~~~~~~~~~~~~~~~~ ~/metaplex/js/packages/gumdrop/packages/cli/src/gumdrop-cli.ts:13:26 - error TS2307: Cannot find module 'discord.js' or its corresponding type declarations. ~~~~~~~~~~~~~~~~~~~~~~~ ~/metaplex/js/packages/gumdrop/packages/cli/src/gumdrop-cli.ts:13:26 - 错误TS2307:找不到模块“discord.js”或其相应的类型声明。

13 import * as discord from 'discord.js'; 13 从'discord.js'导入*作为不和谐;

copying the repo into the old location is not correct.将 repo 复制到旧位置是不正确的。 It only causes those package issues that you saw.它只会导致您看到的那些包问题。

To make the gumdrop cli work you为了让 gumdrop cli 为你工作

  1. need to have yarn installed.需要安装纱线。
  2. Should run yarn install in the packages/cli folder应该在 packages/cli 文件夹中运行 yarn install
  3. Run the cli with ts-node使用 ts-node 运行 cli

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Metaplex 实现“创建 NFT”onClick - Implementing "create NFT" onClick using Metaplex 尝试安装 Ganache CLI 时出错 - Error While Trying To Install Ganache CLI 错误 TS2307:找不到模块“fabric-shim” - Error TS2307: Cannot find module 'fabric-shim' 如何使用 Metaplex Solana 获得所有已确认的已售交易? - How to get all confirmed sold transactions by using Metaplex Solana? 通过 metaplex candy machine id 过滤钱包中的 NFT - Filter NFT's in wallet by metaplex candy machine id 在多个钱包 solana metaplex 和 candymachine 之间分配铸币资金 - Split money on minting between more than one wallet solana metaplex & candymachine Convector Framework CLI在安装链码时返回错误 - Convector Framework CLI returns error when installing chaincode 带有 ganache-cli 的 web3.eth.getTransaction 给出了 chainId 错误 - web3.eth.getTransaction with ganache-cli gives chainId error 错误 TS5056:无法写入文件,因为它会被覆盖 - Error TS5056: Cannot write file because it would be would be overwritten TypeError: _bundlr_network_client__WEBPACK_IMPORTED_MODULE_0__ 在使用 metaplex.nfts().uploadMetadata() 时不是构造函数 - TypeError: _bundlr_network_client__WEBPACK_IMPORTED_MODULE_0__ is not a constructor while using metaplex.nfts().uploadMetadata()
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM