1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-25 19:42:42 +03:00

fixed npm require path (fixes #714)

This commit is contained in:
Eugene Pankov 2019-03-11 14:01:51 +01:00
parent 2227f2cff3
commit afdb06df40

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