mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-22 20:40:08 +00:00
make sure NPM isn't imported at start
This commit is contained in:
parent
00b9a3e773
commit
58482ecc63
@ -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 = require('npm')
|
const npm = (global as any).require('npm')
|
||||||
npm.load({
|
npm.load({
|
||||||
prefix: this.userPluginsPath,
|
prefix: this.userPluginsPath,
|
||||||
}, err => {
|
}, err => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user