mirror of
https://github.com/Eugeny/tabby.git
synced 2025-03-01 15:06:27 +08: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.npmReady) {
|
||||
this.npmReady = new Promise(resolve => {
|
||||
const npm = require('npm')
|
||||
const npm = (global as any).require('npm')
|
||||
npm.load({
|
||||
prefix: this.userPluginsPath,
|
||||
}, err => {
|
||||
|
Loading…
Reference in New Issue
Block a user