From 7993b86dc55285f6c3de896c87dd6ee8f937fbc7 Mon Sep 17 00:00:00 2001 From: Kevin Kwok Date: Thu, 26 Mar 2015 12:46:20 -0700 Subject: [PATCH] [CLI] react-native start won't run from dir with spaces Summary: Running "react-native start" from /Users/kevin/Dropbox (Personal)/Projects/AwesomeProject/ produces the following error Error: Cannot find module '/Users/kevin/Dropbox' at Function.Module._resolveFilename (module.js:322:15) at Function.Module._load (module.js:264:25) at Function.Module.runMain (module.js:487:10) at startup (node.js:111:16) at node.js:809:3 Closes https://github.com/facebook/react-native/pull/214 Github Author: Kevin Kwok Test Plan: Imported from GitHub, without a `Test Plan:` line. --- packager/packager.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packager/packager.sh b/packager/packager.sh index 969ca1b2df039a..93a017c358c0ac 100755 --- a/packager/packager.sh +++ b/packager/packager.sh @@ -10,4 +10,4 @@ ulimit -n 4096 THIS_DIR=$(dirname "$0") -node $THIS_DIR/packager.js "$@" +node "$THIS_DIR/packager.js" "$@"