Compare commits

...

1 Commits

Author SHA1 Message Date
Eugene Pankov
afdb06df40 fixed npm require path (fixes #714) 2019-03-11 14:01:51 +01:00

View File

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