You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The promise returned by called nvexeca never seems to resolve (or rather, seems to have stopped...).
Steps to reproduce
#!/usr/bin/env node
constnvexeca=require('nvexeca')// force process to stay aliveconsttimer=setTimeout(()=>{console.log('time is up')},3000)constp=nvexeca('8','echo',['hello'],{stdio: 'inherit',progress: true}).then(result=>{console.log('then',result)}).catch(result=>{console.log('catch',result)}).finally(result=>{console.log('finally',result)clearTimeout(timer)})console.log('p',p)
Results in the following:
Expected behavior
If I try running this with plain execa, like so:
#!/usr/bin/env node
constexeca=require('execa')// force process to stay aliveconsttimer=setTimeout(()=>{console.log('time is up')},3000)constp=execa('echo',['hello'],{stdio: 'inherit'}).then(result=>{console.log('then',result)}).catch(result=>{console.log('catch',result)}).finally(result=>{console.log('finally',result)clearTimeout(timer)})console.log('p',p)
you get the following output:
which makes sense.
Configuration
I have had it working, and deleted ~/Library/Caches/nve to trigger a new download of node, and now it's not working. I'm not sure if it stopped straight away or what was different when it did work, sorry! Just incase that helps...
Environment
Enter the following command in a terminal and copy/paste its output:
This is due to a bug in Node.js itself, for the versions 13.10.0 and 13.10.1. This bug creates the following issue in got which is used to download the Node.js binary (when it has not already been downloaded and cached locally). This makes nvexeca hang forever during that download.
To fix this problem, please upgrade to Node.js 13.11.0 (Node.js 13.9.0 works as well).
Please let me know if this fixes the problem for you!
for anyone who finds this later on, a semver range of >=10.17.0 <13.10.0 || >=13.11.0 should catch any installs that depend on nvexaca and are susceptible to this bug
Describe the bug
The promise returned by called
nvexeca
never seems to resolve (or rather, seems to have stopped...).Steps to reproduce
Results in the following:
Expected behavior
If I try running this with plain
execa
, like so:you get the following output:
which makes sense.
Configuration
I have had it working, and deleted
~/Library/Caches/nve
to trigger a new download of node, and now it's not working. I'm not sure if it stopped straight away or what was different when it did work, sorry! Just incase that helps...Environment
Enter the following command in a terminal and copy/paste its output:
Am I doing something silly?
The text was updated successfully, but these errors were encountered: