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 => {