diff --git a/lib/common b/lib/common index 0060d2f1a8..fbd89bcc81 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit 0060d2f1a8e6a9361dff082108aef9437f49eb37 +Subproject commit fbd89bcc81089a6977a4fa8576f1d826c2b452dd diff --git a/preuninstall.js b/preuninstall.js index d6580c34cf..ebe1ec8304 100644 --- a/preuninstall.js +++ b/preuninstall.js @@ -2,8 +2,9 @@ var child_process = require("child_process"); var child = child_process.exec("node bin/nativescript.js dev-preuninstall", function (error) { if (error) { + // Some npm versions (3.0, 3.5.1, 3.7.3) remove the NativeScript node_modules before the preuninstall script is executed and the script can't find them (the preuninstall script is like postinstall script). + // The issue is described in the npm repository https://github.com/npm/npm/issues/8806 and it is not fixed in version 3.1.1 as commented in the conversation. console.error("Failed to complete all pre-uninstall steps. "); - console.log(error); } });