Running Lisk projects on WSL2 on Windows

I was trying to run the tutorial hello-world in node v12 on Ubuntu in WSL2 on Windows.

  • blockchain_app started up fine (with node index.js), but
  • react-client started with npm start threw
13 verbose stack Error: lisk_passphrase@1.0.0 start: `webpack serve --mode development --open --hot --port 8989`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/home/binor/.nvm/versions/node/v12.22.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:314:20)
13 verbose stack     at ChildProcess.<anonymous> (/home/binor/.nvm/versions/node/v12.22.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:314:20)
13 verbose stack     at maybeClose (internal/child_process.js:1022:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)

Fix: Removed --open from package.json

    "start": "webpack serve --mode development --open --hot --port 8989",

Then http://localhost:8989 ran fine on the windows host

1 Like