mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-12 07:29:59 +00: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.npm) {
|
||||||
if (!this.npmReady) {
|
if (!this.npmReady) {
|
||||||
this.npmReady = new Promise(resolve => {
|
this.npmReady = new Promise(resolve => {
|
||||||
const npm = (window as any).nodeRequire('npm')
|
const npm = require('npm')
|
||||||
npm.load({
|
npm.load({
|
||||||
prefix: this.userPluginsPath,
|
prefix: this.userPluginsPath,
|
||||||
}, err => {
|
}, err => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user