Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Error when running my fork of truffle-core: can't find module truffle-core/run? #147

Open
roschler opened this issue Jun 7, 2018 · 1 comment

Comments

@roschler
Copy link

roschler commented Jun 7, 2018

I'm trying to make my own custom build of the truffle-core repo. I've forked the repo and made a Node.JS configuration in IntelliJ's WebStorm IDE. When I run "npm start" I get the following exception:

internal/modules/cjs/loader.js:596
    throw err;
    ^

Error: Cannot find module '/home/robert/Documents/GitHub/ME/truffle-core/run'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
Waiting for the debugger to disconnect...

What do I need to do to get a runnable/debuggable environment using this repo?

@roschler
Copy link
Author

roschler commented Jun 7, 2018

Got past that error. I needed to specify index.j as my starting Javascript file. Now I'm having a problem with it finding "./lib/config":

Debugger attached.
internal/modules/cjs/loader.js:596
    throw err;
    ^

Error: Cannot find module './lib/config'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/home/robert/Documents/GitHub/ME/truffle-core/index.js:6:11)
    at Module._compile (internal/modules/cjs/loader.js:699:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
Waiting for the debugger to disconnect...

Process finished with exit code 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant