metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.32k stars 6.26k forks source link

code: 'MODULE_NOT_FOUND', issue #1565

Closed doranring closed 2 years ago

doranring commented 2 years ago

When I am trying the upload command for metaplex I get this error and I do not know what is causing it. This error happens to me on candy machine V1 and V2. I am relly new to this so thanks in advance if anyone of you can help!

image

davidmitesh commented 2 years ago

This error is caused due to incorrect path. Go to the metaplex/js/packages/cli/src/ folder and try to run the candy-machine-v1-cli.ts script.

doranring commented 2 years ago

Thanks for your response. I have tried running candy-machine-v1-cli.ts script with tsc command and I now get this error. image

davidmitesh commented 2 years ago

Try to run using ts-node instead of tsc. If you dont have the module, try installing it globally and then run it using ts-node.https://www.npmjs.com/package/ts-node

doranring commented 2 years ago

I have tried using ts-node and it instead gives me this error. And what do you mean by installing the module globally?

image

davidmitesh commented 2 years ago

By globally I mean : npm install -g typescript npm install -g ts-node

have you already set-up solana on your machine?

doranring commented 2 years ago

Solana is set up and I have already installed ts-node and typescript. Do you have any other solution? I appreciate your help.

davidmitesh commented 2 years ago

I think there is something specific we should do on the windows machine for this setup.As I am on mac, I can't help you.

333fLOW commented 2 years ago

When I am trying the upload command for metaplex I get this error and I do not know what is causing it. This error happens to me on candy machine V1 and V2. I am relly new to this so thanks in advance if anyone of you can help!

image

https://github.com/metaplex-foundation/metaplex/issues/1566#issuecomment-1016094287