Skip to content

Hide npm preuninstall errors #1693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/common
Submodule common updated 1 files
+3 −1 verify-node-version.ts
3 changes: 2 additions & 1 deletion preuninstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});

Expand Down