question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"npm run start-hot" ends in exception

See original GitHub issue

With npm install Daedalus could be build on NixOS successfully. Unfortunately npm run start-hot fails.

$ git log -n1 --oneline 
ab6aab0c (HEAD -> master, origin/master, origin/HEAD) Merge pull request #617 from input-output-hk/fix/DDW-13-fix-storybook-react-polymorph-styling-issues
$ npm run start-hot     

> daedalus@0.8.0 start-hot /home/palik/Documents/devel/cardano/daedalus
> cross-env HOT=1 NODE_ENV=development electron -r babel-register -r babel-polyfill ./electron/main.development

/home/palik/Documents/devel/cardano/daedalus/node_modules/electron/index.js:9
  throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
  ^

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
    at Object.<anonymous> (/home/palik/Documents/devel/cardano/daedalus/node_modules/electron/index.js:9:9)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/palik/Documents/devel/cardano/daedalus/node_modules/electron/cli.js:3:16)
    at Module._compile (module.js:570:32)

npm ERR! Linux 4.9.60
npm ERR! argv "/nix/store/iz92vn135m10jvcxy1f8dch9dgky8gaf-nodejs-6.11.5/bin/node" "/home/palik/.nix-profile/bin/npm" "run" "start-hot"
npm ERR! node v6.11.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! daedalus@0.8.0 start-hot: `cross-env HOT=1 NODE_ENV=development electron -r babel-register -r babel-polyfill ./electron/main.development`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the daedalus@0.8.0 start-hot script 'cross-env HOT=1 NODE_ENV=development electron -r babel-register -r babel-polyfill ./electron/main.development'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the daedalus package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env HOT=1 NODE_ENV=development electron -r babel-register -r babel-polyfill ./electron/main.development
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs daedalus
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls daedalus
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/palik/Documents/devel/cardano/daedalus/npm-debug.log

npm-debug.log

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
p-alikcommented, Jan 5, 2018

Thank you a lot, @h4ck3rm1k3!

Dear maintainers, please add the instruction NODE_ENV=development node --preserve-symlinks -r babel-register webpack/server.js into Development section.

Development section describes already two methods to run Daedalus with npm

  • run with one command
  • run these two commands simultaneously in different console tabs
1reaction
h4ck3rm1k3commented, Jan 3, 2018

ok wait. again my bad. mdupont@debian-build-speed:~/experiments/daedalus$ cat runserver.sh NODE_ENV=development node --preserve-symlinks -r babel-register webpack/server.js --host 0.0.0.0

On Wed, Jan 3, 2018 at 7:18 AM, Алексей Пастухов notifications@github.com wrote:

$ npm run hot-server opens a white chrome-window but still nothing listening on port 4000.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/input-output-hk/daedalus/issues/632#issuecomment-354999005, or mute the thread https://github.com/notifications/unsubscribe-auth/AACIV2T7UYgkEjjOIS6wknBkE3WC_Q-sks5tG3ATgaJpZM4RPtfR .

– James Michael DuPont

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve npm error "npm ERR! code ELIFECYCLE"
Step 1: $ npm cache clean --force. Step 2: Delete node_modules by $ rm -rf node_modules ( rmdir /S /Q node_modules in windows)...
Read more >
npm-audit
The audit command submits a description of the dependencies configured in your project to your default registry and asks for a report of...
Read more >
How to Throw Exceptions in Node.js - Rollbar
When trying to track down an error, it can be hard to rationalize what Error is supposed to mean, as opposed to InvalidAge...
Read more >
Process | Node.js v19.3.0 Documentation
hasUncaughtExceptionCaptureCallback (); process.hrtime([time]) ... the event loop of the process running, and lets it finish even while the channel is open.
Read more >
"The NPM script 'start' exited without indicating that the create ...
"The NPM script 'start' exited without indicating that the create-react-app server was listening for requests" In .Net React Application.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found