make sure NPM isn't imported at start

This commit is contained in:
Eugene Pankov 2019-05-31 13:42:07 +02:00
parent 00b9a3e773
commit 58482ecc63

View File

@ -40,7 +40,7 @@ export class PluginManagerService {
if (!this.npm) {
if (!this.npmReady) {
this.npmReady = new Promise(resolve => {
const npm = require('npm')
const npm = (global as any).require('npm')
npm.load({
prefix: this.userPluginsPath,
}, err => {