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.

node < 4 support PR?

See original GitHub issue

Would you accept a pr which utilizes webpack + babel to expose an es5 version?

Currently the line lower versions of node trip up on lib/index.js:139

var err = {
  code: code,
  message: '`' + commandStr + '` failed with code ' + code,
  childProcess: cp,
  toString() { // <------------- invalid syntax
    return this.message;
  }
};

You could keep the default require pointing to your current entry point, and have webpack output a file es5.js which would allow people to require('child-process-promise/es5').

As for “why?” - my corporate environment runs build servers using node v0.12.14 and so our development environment should run on the same. Getting my co-workers using the command line is hard enough, but if they have to remember to mess with nvm in order to use the few CLI tools I create, that’s a hurdle they shouldn’t have to deal with.

I appreciate the module regardless!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
olsonpmcommented, Aug 7, 2016

Working on it now and will create a PR. I should have closed this issue when we resolved the direction anyway.

0reactions
olsonpmcommented, Aug 1, 2016

Interesting - yeah I thought there were non-browser use-cases for bundlers, but the more I google the more I find “how to bundle for the server environment” instead of “why”. I’ll use the conditional as you explained.

Thanks for mentioning lasso - hadn’t heard of it before.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node4 Support | Contact Us
Our expert team look forward to hearing from you. Contact the Node4 support team today & bring digital transformation to your business and...
Read more >
Node.js
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. ... For information about supported releases, see the release schedule.
Read more >
node/BUILDING.md at main · nodejs/node - GitHub
Node.js compilation/execution support depends on operating system, architecture, and libc version. The table below lists the support tier for each supported ...
Read more >
Node.js Developer Tools - Visual Studio
Project templates, IntelliSense, npm integration, debugging, & more. ... Node.js Tools for Visual Studio includes support for discovering ...
Read more >
Node.js and Raspberry Pi - W3Schools
In our examples we use a Raspberry Pi 3, but this tutorial should work for most versions. Hardware needed: Raspberry Pi computer; MicroSD...
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