Skip to content

Commit 0df2505

Browse files
committed
Merge pull request #180 from NativeScript/totev/sudo
Allow installing with sudo node
2 parents b50ed71 + 91c29af commit 0df2505

File tree

4 files changed

+13
-31
lines changed

4 files changed

+13
-31
lines changed

lib/bootstrap.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ $injector.requireCommand("run", "./commands/run");
2828
$injector.requireCommand("prepare", "./commands/prepare");
2929
$injector.requireCommand("build", "./commands/build");
3030
$injector.requireCommand("deploy", "./commands/deploy");
31-
$injector.requireCommand("dev-post-install", "./commands/post-install");
3231
$injector.requireCommand("emulate", "./commands/emulate");
3332

3433
$injector.require("npm", "./node-package-manager");

lib/commands/post-install.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

lib/common

postinstall.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
1+
"use strict";
22
var child_process = require("child_process");
33
var command = process.argv[0] + ' bin/nativescript.js dev-post-install';
4-
child_process.exec(command);
4+
child_process.exec(command, function(error, stdout, stderr) {
5+
if (stdout !== null && stdout.toString() !== "") {
6+
console.log('stdout: ' + stdout);
7+
}
8+
if (stderr !== null && stderr.toString() !== "") {
9+
console.log('stderr: ' + stderr);
10+
}
11+
if (error !== null) {
12+
console.log('exec error: ' + error);
13+
}
14+
});

0 commit comments

Comments
 (0)