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:
parent
2227f2cff3
commit
afdb06df40
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user