I get an Error at trying to interact with my smart contract

Viewed 32

Hello I want to execute that command: npx run scripts/interact.js --network goerli
and I get this Error. I am not sure how to fix this error? I already know that this Error is connected with the HelloWorld.json file and I think I should draft it to another folder, but I dont know which folder.

Starting: scripts/interact.js --network goerli node:internal/modules/cjs/loader:959 throw err; ^

Error: Cannot find module 'C:UsersCemilCPaytestscriptsartifactscontractsHelloWorld.solHelloWorld.json'
Require stack:
- C:\Users\Cemil\CPaytest\scripts\interact.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
    at Function.Module._load (node:internal/modules/cjs/loader:804:27)
    at Module.require (node:internal/modules/cjs/loader:1028:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\Users\Cemil\CPaytest\scripts\interact.js:7:18)
    at Module._compile (node:internal/modules/cjs/loader:1126:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
    at Module.load (node:internal/modules/cjs/loader:1004:32)
    at Function.Module._load (node:internal/modules/cjs/loader:839:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'C:\\Users\\Cemil\\CPaytest\\scripts\\interact.js' ]
}
0 Answers
Related