From a18dbe551fab12fcde45eea7d2bc6cc0038cb7fc Mon Sep 17 00:00:00 2001 From: Cheton Wu Date: Tue, 14 Mar 2017 11:19:18 +0800 Subject: [PATCH] Resolve executable path with node-which --- babel-tap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/babel-tap b/babel-tap index 15139fc..dc3a041 100755 --- a/babel-tap +++ b/babel-tap @@ -1,5 +1,6 @@ #!/usr/bin/env node 'use strict'; -process.execPath = require.resolve('.bin/babel-node'); +var which = require('which'); +process.execPath = which.sync('babel-node'); require('tap/bin/run.js');