max-mapper / standard-format

converts your code into Standard JavaScript Format
264 stars 59 forks source link

Native thread-sleep not available #159

Closed itlodge closed 8 years ago

itlodge commented 8 years ago

Hi, Every time I run 'standard-format', there is a warning. Can you solve it?

Native thread-sleep not available.
This will result in much slower performance, but it will still work.
You should re-install spawn-sync or upgrade to the lastest version of node if possible.
Check /usr/lib/node_modules/standard-format/node_modules/esformatter/node_modules/npm-run/node_modules/spawn-sync/error.log for more details
chenxsan commented 8 years ago

What is the output of node -v on your system?

You might need upgrade you nodejs.

bcomnes commented 8 years ago

One of our deps is depending on spawn-sync, which started doing some really not cool stuff with native dependencies underneath us.

We need to remove whatever is using it, either by updating our deps to see if that fixes it, or by finding an alternative library for whatever is pulling in spawn-sync. I don't have time at the moment to spelunk that.

PRs definately welcome on this one.

feross commented 8 years ago

This looks like an issue with esformatter. @itlodge Can you open an issue on their repo? https://github.com/millermedeiros/esformatter

itlodge commented 8 years ago

@chenxsan , thanks for your advice. Node 0.10.35 will cause this problem and Node 4.3.1 won't.