diff --git a/src/npm.ts b/src/npm.ts index e026e15..b5fbcc5 100644 --- a/src/npm.ts +++ b/src/npm.ts @@ -35,8 +35,6 @@ export default class NPM { } public static async install(nodeCtx: NodeContext, pkgs: string[]) { - await this.renamePackageJson(); - let p; if (nodeCtx.useGlobals) { @@ -53,11 +51,7 @@ export default class NPM { }); }); - const exitCode = await exitPromise; - - await this.restorePackageJson(); - - return exitCode; + return await exitPromise; } public static configure(