Enoent:没有这样的文件或目录,Scandir

发布于 2025-02-11 08:22:13 字数 1984 浏览 4 评论 0原文

ps c:\ users \ ahmad \ desktop \ nft \ metaplex-master> ts-node c:\ user \ ahmad \ desktop \ nft \ nft \ metaplex-master \ js \ packages \ cli \ src \ candy-machine-machine-v2-cli.ts upload -e devnet -k c:\ users \ ahmad \ desktop \ nft \ nft \ metaplex-master \ devnet.json -cp c:\ users \ ahmad \ desktop \ nft \ nft \ metaplex-master \ js \ js \ js \ packages \ packages \ packages \ cli \ cli \ config smart Contract.json c: \ user \ ahmad \ desktop \ nft \ metaplex-master \ Assets

错误:eNOENT:没有这样的文件或目录,scandir'smart' 在object.ReadDirsync(节点:FS:1405:3) 在gright.parsearg(c:\ users \ ahmad \ desktop \ nft \ metaplex-master \ js \ packages \ cli \ src \ candy-machine-v2-cli.ts:97:17) 在myParsearg(c:\ users \ ahmad \ desktop \ nft \ nft \ metaplex-master \ js \ packages \ cli \ node_modules \ commander \ lib \ commander.js:1095:34) at C:\ users \ ahmad \ desktop \ nft \ metaplex-master \ js \ packages \ cli \ node_modules \ commander \ lib \ lib \ command.js:1127:19 在array.foreach() at command._processarguments(c:\ users \ ahmad \ desktop \ nft \ nft \ metaplex-master \ js \ packages \ cli \ node_modules \ commander \ commander \ lib \ command.js:1110:16) 在command._parsecommand(c:\ users \ ahmad \ desktop \ nft \ nft \ metaplex-master \ js \ packages \ cli \ node_modules \ commander \ lib \ command.js:1230:12) 在command._dispatchsubcommand(c:\ users \ ahmad \ desktop \ nft \ nft \ metaplex-master \ js \ packages \ cli \ node_modules \ commander \ lib \ commander.js:1057:25) 在command._parsecommand(c:\ users \ ahmad \ desktop \ nft \ nft \ metaplex-master \ js \ packages \ cli \ node_modules \ commander \ lib \ command.js:1200:19) 在command.parse(c:\ users \ ahmad \ desktop \ nft \ nft \ metaplex-master \ js \ packages \ cli \ node_modules \ commander \ commander \ lib \ command.js:889:10){ errno:-4058, Syscall:“ Scandir”, 代码:'enoent', 路径:'智能' } 在此处输入图像描述

PS C:\Users\ahmad\Desktop\nft\metaplex-master> ts-node C:\Users\ahmad\Desktop\nft\metaplex-master\js\packages\cli\src\candy-machine-v2-cli.ts upload -e devnet
-k C:\Users\ahmad\Desktop\nft\metaplex-master\devnet.json -cp C:\Users\ahmad\Desktop\nft\metaplex-master\js\packages\cli\config smart contract.json C:\Users\ahmad\Desktop\nft\metaplex-master\assets

Error: ENOENT: no such file or directory, scandir 'smart'
at Object.readdirSync (node:fs:1405:3)
at Argument.parseArg (C:\Users\ahmad\Desktop\nft\metaplex-master\js\packages\cli\src\candy-machine-v2-cli.ts:97:17)
at myParseArg (C:\Users\ahmad\Desktop\nft\metaplex-master\js\packages\cli\node_modules\commander\lib\command.js:1095:34)
at C:\Users\ahmad\Desktop\nft\metaplex-master\js\packages\cli\node_modules\commander\lib\command.js:1127:19
at Array.forEach ()
at Command._processArguments (C:\Users\ahmad\Desktop\nft\metaplex-master\js\packages\cli\node_modules\commander\lib\command.js:1110:16)
at Command._parseCommand (C:\Users\ahmad\Desktop\nft\metaplex-master\js\packages\cli\node_modules\commander\lib\command.js:1230:12)
at Command._dispatchSubcommand (C:\Users\ahmad\Desktop\nft\metaplex-master\js\packages\cli\node_modules\commander\lib\command.js:1057:25)
at Command._parseCommand (C:\Users\ahmad\Desktop\nft\metaplex-master\js\packages\cli\node_modules\commander\lib\command.js:1200:19)
at Command.parse (C:\Users\ahmad\Desktop\nft\metaplex-master\js\packages\cli\node_modules\commander\lib\command.js:889:10) {
errno: -4058,
syscall: 'scandir',
code: 'ENOENT',
path: 'smart'
}enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

东北女汉子 2025-02-18 08:22:13

这只是一个路径问题,它是因为您的配置文件称为config smart Contract.json您绝不应该在文件上使用空格,因为会导致此行为,因此您绝对不应使用空格。您应该将UR配置名称更改为config_smart_contract.json(删除空格),并且TS节点调用应为(遵循我所使用的新名称):

ts-node C: \ user \ ahmad \ desktop \ nft \ metaplex-master \ js \ packages \ cli \ cli \ src \ candy-machine-v2-cli.ts上传-e devnet -k c:\ users \ users \ ahmad \ ahmad \ ahmad \ desktop \ nft \ nft \ nft \ metaplex \ metaplex \ metaplex \ metaplex \ m米\devnet.json -cp C:\Users\ahmad\Desktop\nft\metaplex-master\js\packages\cli\config_smart_contract.json C:\Users\ahmad\Desktop\nft\metaplex-master\assets

This is just a pathing issue, and its caused because your config file its called config smart contract.json you should never use spaces on a file because will cause this behavior. You should change ur config name to something like config_smart_contract.json (remove the spaces) and the ts-node call should be (following the new name that I sugested):

ts-node C:\Users\ahmad\Desktop\nft\metaplex-master\js\packages\cli\src\candy-machine-v2-cli.ts upload -e devnet -k C:\Users\ahmad\Desktop\nft\metaplex-master\devnet.json -cp C:\Users\ahmad\Desktop\nft\metaplex-master\js\packages\cli\config_smart_contract.json C:\Users\ahmad\Desktop\nft\metaplex-master\assets

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文