From afdb06df403c249c6a51bfde9a377fdfb649e914 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Mon, 11 Mar 2019 14:01:51 +0100 Subject: [PATCH] fixed npm require path (fixes #714) --- terminus-plugin-manager/src/services/pluginManager.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminus-plugin-manager/src/services/pluginManager.service.ts b/terminus-plugin-manager/src/services/pluginManager.service.ts index 96d689a1..a79c33c9 100644 --- a/terminus-plugin-manager/src/services/pluginManager.service.ts +++ b/terminus-plugin-manager/src/services/pluginManager.service.ts @@ -40,7 +40,7 @@ export class PluginManagerService { if (!this.npm) { if (!this.npmReady) { this.npmReady = new Promise(resolve => { - const npm = (window as any).nodeRequire('npm') + const npm = require('npm') npm.load({ prefix: this.userPluginsPath, }, err => {