@drocketxx/pm2me 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/routes/api.js +2 -2
- package/package.json +1 -1
package/backend/routes/api.js
CHANGED
|
@@ -59,7 +59,7 @@ router.get('/pm2/version-check', async (req, res) => {
|
|
|
59
59
|
// Get latest version from npm registry
|
|
60
60
|
let latestVersion = null;
|
|
61
61
|
try {
|
|
62
|
-
const { stdout } = await execAsync('npm view pm2 version');
|
|
62
|
+
const { stdout } = await execAsync('npm view pm2 version', { windowsHide: true });
|
|
63
63
|
latestVersion = stdout.trim();
|
|
64
64
|
} catch {
|
|
65
65
|
latestVersion = null;
|
|
@@ -78,7 +78,7 @@ router.get('/pm2/version-check', async (req, res) => {
|
|
|
78
78
|
router.post('/pm2/install-update', async (req, res) => {
|
|
79
79
|
try {
|
|
80
80
|
res.writeHead(200, { 'Content-Type': 'text/plain', 'Transfer-Encoding': 'chunked' });
|
|
81
|
-
const child = exec('npm install -g pm2@latest');
|
|
81
|
+
const child = exec('npm install -g pm2@latest', { windowsHide: true });
|
|
82
82
|
child.stdout.on('data', (d) => res.write(d));
|
|
83
83
|
child.stderr.on('data', (d) => res.write(d));
|
|
84
84
|
child.on('close', (code) => {
|