Enoent:没有这样的文件或目录,Scandir
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这只是一个路径问题,它是因为您的配置文件称为
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 likeconfig_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