Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Scrypt issue while running on Windows #10

Open
LogvinovLeon opened this issue Nov 16, 2018 · 3 comments
Open

Scrypt issue while running on Windows #10

LogvinovLeon opened this issue Nov 16, 2018 · 3 comments

Comments

@LogvinovLeon
Copy link
Contributor

LogvinovLeon commented Nov 16, 2018

Sometimes when you try running 0x-launch-kit on Windows you'll get an error like this:

Error: Cannot find module './build/Release/scrypt'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
    at Function.Module._load (internal/modules/cjs/loader.js:529:25)
    at Module.require (internal/modules/cjs/loader.js:658:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (C:\Users\leonidlogvinov\0x-launch-kit\node_modules\scrypt\index.js:3:20)
    at Module._compile (internal/modules/cjs/loader.js:722:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
    at Function.Module._load (internal/modules/cjs/loader.js:552:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

We are aware of that problem but it seems to stem from one of our dependencies, and is an issue shared across many Ethereum dev tools.

Here is the list of issues on other projects related to it that might help you resolve it:

@fabioberger fabioberger changed the title Scrypt issue while running on WIndows Scrypt issue while running on Windows Nov 16, 2018
@sudhiryadav
Copy link

change this line require("./build/Release/scrypt") to require("scrypt") from '/node_modules/scrypt/index.js'

@voomdex
Copy link

voomdex commented Jun 13, 2019

change this line require("./build/Release/scrypt") to require("scrypt") from '/node_modules/scrypt/index.js'

which files to edit ? explain more please

@sudhiryadav
Copy link

change this line require("./build/Release/scrypt") to require("scrypt") from '/node_modules/scrypt/index.js'

which files to edit ? explain more please

The file path as mentioned is inside /node_modules/scrypt folder. Edit the file index.js inside that folder. Find that line and change it accordingly.

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

3 participants