Skip to content

shell.exec('npm pack') painfully slow #885

@pfms84

Description

@pfms84

Node version (or tell us if you're using electron or some other framework):

10.9.0

ShellJS version (the most recent version/Github branch you see the bug on):

0.8.2

Operating system:

Windows 10

Description of the bug:

With the version 6 of NPM, shell.exec('npm pack') or shell.exec('npm publish') became painfully slow.

Example ShellJS command to reproduce the error:

console.time('execution-time');
if (shell.exec(`npm pack`).code !== 0) {
    process.exit(-1);
}
console.timeEnd('shell.exec(\'npm pack\')'); // shell.exec('npm pack'): 189658.260ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    execIssues specific to the shell.exec() API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions