/usr/local/lib/node_modules/pm2
NameSizeModeActions
bin/-0755rm
lib/-0755rm
node_modules/-0755rm
types/-0755rm
.gitattributes620644editdlrm
.mocharc.js2160644editdlrm
bun.lock190690644editdlrm
CHANGELOG.md1038500644editdlrm
constants.js50970644editdlrm
CONTRIBUTING.md28450644editdlrm
e2e_time4960644editdlrm
GNU-AGPL-3.0.txt345160644editdlrm
index.js3030644editdlrm
LICENSE170644editdlrm
package.json45320644editdlrm
paths.js34580644editdlrm
pm22200755editdlrm
preinstall.js6890644editdlrm
README.md64600644editdlrm
run.sh1360644editdlrm
unit_time24750644editdlrm
Edit: /usr/local/lib/node_modules/pm2/preinstall.js (689B)
const fs = require('fs'); const path = require('path'); // Determine platform const isWindows = process.platform === 'win32'; if (!isWindows) process.exit(0) const sourceFile = 'bin/pm2-windows'; const destinationFile = 'bin/pm2'; // Resolve file paths const sourcePath = path.resolve(__dirname, sourceFile); const destinationPath = path.resolve(__dirname, destinationFile); // Copy the appropriate file based on the platform fs.copyFile(sourcePath, destinationPath, (err) => { if (err) { console.error(`Error copying file from ${sourcePath} to ${destinationPath}:`, err); process.exit(1); } console.log(`Successfully copied ${sourceFile} to ${destinationFile}`); });