Copy node_modules if the directory exists (#82)
diff --git a/bin/lib/create.js b/bin/lib/create.js
index 06aa0df..44329f6 100755
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -83,7 +83,9 @@
// Copy in the new ones.
var binDir = path.join(ROOT, 'bin');
shell.cp('-r', srcScriptsDir, projectPath);
- shell.cp('-r', path.join(ROOT, 'node_modules'), destScriptsDir);
+
+ let nodeModulesDir = path.join(ROOT, 'node_modules');
+ if (fs.existsSync(nodeModulesDir)) shell.cp('-r', nodeModulesDir, destScriptsDir);
// Copy the check_reqs script
shell.cp(path.join(binDir, 'check_reqs*'), destScriptsDir);