{"_id":"@davistran86/pm2-windows-service","_rev":"3-41ce05e448d31e0d3a49edae40013d40","name":"@davistran86/pm2-windows-service","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@davistran86/pm2-windows-service","version":"1.0.0","description":"Install PM2 as a service on windows","main":"src/index.js","bin":{"pm2-service-install":"bin/pm2-service-install","pm2-service-uninstall":"bin/pm2-service-uninstall"},"scripts":{"test":"node test/integration.js"},"repository":{"type":"git","url":"git+https://github.com/davistran86/pm2-windows-service.git"},"keywords":["pm2","windows","service"],"author":{"name":"Jon Hall","email":"jon_hall@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/davistran86/pm2-windows-service/issues"},"homepage":"https://github.com/davistran86/pm2-windows-service#readme","dependencies":{"co":"^4.6.0","co-event":"^0.1.0","del":"^2.1.0","fs-extra":"^4.0.2","inquirer":"^7.3.3","is-admin":"^3.0.0","node-windows":"^1.0.0-beta.5","promisify-node":"^0.3.0","shelljs":"^0.7.0","yargs":"^16.2.0"},"resolutions":{"**/minimist":"^1.2.3"},"engines":{"node":">=4.0.0"},"os":["win32"],"devDependencies":{"temp":"^0.8.3"},"gitHead":"2bf917093704d47964c4730e1538d6de8d44d345","_id":"@davistran86/pm2-windows-service@1.0.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-jOc2iV754XzozCa21Z0l6+5f1pvYO0WvBWua+2BIJYwCBAZa89lRW6cn7hKGew7/y5IgusJVGKoSypywybFChg==","shasum":"d85cc90d7b1f5cbe947d4db8d72447d97a5e0e52","tarball":"https://registry.npmjs.org/@davistran86/pm2-windows-service/-/pm2-windows-service-1.0.0.tgz","fileCount":11,"unpackedSize":21008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7DXwCRA9TVsSAnZWagAAsOwP/2AT3t3zHLWThrWXp4vF\nc1AjewN6UZSvOy6Y8vacRTmdD/veaawSZYEKew/Fx23NPGPPEuQM29Qf+wSJ\nx/7yfLXa6gOUy4fG9PSK6J7ZB1cc0HuRtjd+nYZchnEKixTFFwt+wIGAaeC7\njl6Bwj889iRysoZK+8ysNgNsOAyzHuMHhKNdRiaiSaukuU4Jzwc3G1tNC2+V\nJJiSblab0LTEPVV4sJo4mnF629WvQnTFfSJ2tm/Jm/NhWMBuk/JazleO5wZ+\nD4Id6M6H14lqbGURd3qfj9y3/WEdTTaUyhlCFWHXnmGPNiPZIOGHuH3MqR0n\ngsmCYx5fDHwq1iaIryE1Wi+o4T75UrJ9GDUF8eOYoYnJvi3gg3KC9Gm2LzWR\nrCEJ/gr1pXDKhbP9ldY45GcRgBnTZ5GdRlJBQt3RLUzVe3c7HWJ/pVC/XeWb\nMsG4VBeFjSZ+O5S55JEcCL2nIzGioCmUMFvHgbPdww02AFEVp8mP3aQ+T6C+\nk86bKac3dpZFw1PkHdybt46VPpwj7I3hLO8K2z+BH/9a15/Gxqmq/xNgs4PV\n2uJ3I4U5hTarlbVC6I7+NpPeDZig4oBjEOOPUKW4Qv2pNiuQXRN/YU7Ut9Qo\nsHfGNMxHkRJpWyfKiSPf6pDbUP4HiNG7fsnwKj8bTEXTU4KMrVenMvWODalK\nbCqf\r\n=NCLJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFEvR4QmqUOjnLfoRLvtUcZqtuJy/PFF4TIp7Qw5yYhjAiEArFTDyHkoNOm8VQqnIf5UTRPO0puUsL8QPYttpQzxB2o="}]},"_npmUser":{"name":"davistran86","email":"codered.vn@gmail.com"},"directories":{},"maintainers":[{"name":"davistran86","email":"codered.vn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pm2-windows-service_1.0.0_1609315824354_0.42869238073260907"},"_hasShrinkwrap":false},"1.0.1":{"name":"@davistran86/pm2-windows-service","version":"1.0.1","description":"Install PM2 as a service on windows","main":"src/index.js","bin":{"pm2-service-install":"bin/pm2-service-install","pm2-service-uninstall":"bin/pm2-service-uninstall"},"scripts":{"test":"node test/integration.js"},"repository":{"type":"git","url":"git+https://github.com/davistran86/pm2-windows-service.git"},"keywords":["pm2","windows","service"],"author":{"name":"Jon Hall","email":"jon_hall@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/davistran86/pm2-windows-service/issues"},"homepage":"https://github.com/davistran86/pm2-windows-service#readme","dependencies":{"co":"^4.6.0","co-event":"^0.1.0","del":"^2.1.0","fs-extra":"^4.0.2","inquirer":"^7.3.3","is-admin":"^3.0.0","node-windows":"^1.0.0-beta.5","promisify-node":"^0.3.0","shelljs":"^0.7.0","yargs":"^16.2.0"},"resolutions":{"**/minimist":"^1.2.3"},"engines":{"node":">=4.0.0"},"os":["win32"],"devDependencies":{"temp":"^0.8.3"},"gitHead":"f48f83fa2ab8cdebc5464333709a273254ec1264","_id":"@davistran86/pm2-windows-service@1.0.1","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-0MjozWiOYSUikTPU1B3FRZ0FcMf/RVj4h1WY0rvCQ/c3ZWTkBDHllyITVl508ytVT6vScbYbusKBWbyO5bWabA==","shasum":"78ac49aa597dfcc67f1d5f7a42b595041ad3d7d0","tarball":"https://registry.npmjs.org/@davistran86/pm2-windows-service/-/pm2-windows-service-1.0.1.tgz","fileCount":11,"unpackedSize":20847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7D6+CRA9TVsSAnZWagAAbkwQAJvovyEpmeVrsitpLHwU\ncdL6pn8gqWPQuZIpKsYEJ6gPNq2beP0ZYe1IeF0VITweycz6LOvs0TA5v4vD\nuvvG32oJZO4MUylO00omGaLZvcTKKc+Pb4o3P46Rd/pbyAJyqh8HTuhuzDLJ\nz2ndlQ3dguL6LhZiGuk7f3+zXZxQi6Wo+wCfGxoTmnwTdHAgJq9AzVuHrG8T\nKyIvGTWGImH6PPXOJDZgh5JHHxWI8Q0kxA3Z61LbSQ6jLEaNlPeHc2F8wh3X\nUhVzB/0wpu2apAr65EsBizAd0qddRj9cmLFBFDnp645nHpl33bG4J1IFKLK5\n5YM5uPaLsmKlS0DBSI3NrRO6AOVSNd3z7+fBvDdQi6ULbnBxMTqFX0dJiuiP\nHV9MdPLZfOfhF3S6vNAxjph+H0dntC3zphCoIAYZz7+ydtCvVCTi0zzIVD7C\nn0mU1huiA1FnIiDHpLeE2uBrX+n9rGdQyLlAOZn2YxHyDBctyY/N2vxQQTE7\ns3yMB97naWrr+milEsOVI/GVyiBwMMJ15Nv2i+sZm2ke7M3hdC5HKawv9jY/\nOA7XXAiUxChBxkY2WMPEmhkWrWShU+EmO5JYyGJGhgePoibbMUeMF8M/pL4i\nJl3NCBsQwRIqnW/D0Yyfxcssp/ERBLEBUKUbwnzmdwWFyEKCB42O5Pk9d92H\nh9OC\r\n=I4bp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBGNVh4y+3hV5SV5ubdKe+OjL/JstMMX5vgb2fN+XkixAiEA/z+A+GSDdEsVHn/Gu+bUTi9aUSABaij4wNo7Lm05++M="}]},"_npmUser":{"name":"davistran86","email":"codered.vn@gmail.com"},"directories":{},"maintainers":[{"name":"davistran86","email":"codered.vn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pm2-windows-service_1.0.1_1609318078295_0.05976332978490362"},"_hasShrinkwrap":false},"1.0.2":{"name":"@davistran86/pm2-windows-service","version":"1.0.2","description":"Install PM2 as a service on windows","main":"src/index.js","bin":{"pm2-service-install":"bin/pm2-service-install","pm2-service-uninstall":"bin/pm2-service-uninstall"},"scripts":{"test":"node test/integration.js"},"repository":{"type":"git","url":"git+https://github.com/davistran86/pm2-windows-service.git"},"keywords":["pm2","windows","service"],"author":{"name":"Jon Hall","email":"jon_hall@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/davistran86/pm2-windows-service/issues"},"homepage":"https://github.com/davistran86/pm2-windows-service#readme","dependencies":{"co":"^4.6.0","co-event":"^0.1.0","del":"^2.1.0","fs-extra":"^4.0.2","inquirer":"^7.3.3","is-admin":"^3.0.0","node-windows":"^1.0.0-beta.5","promisify-node":"^0.3.0","shelljs":"^0.7.0","yargs":"^16.2.0"},"resolutions":{"**/minimist":"^1.2.3"},"engines":{"node":">=4.0.0"},"os":["win32"],"devDependencies":{"temp":"^0.8.3"},"gitHead":"6256e29acb294572810315ec8045fe6e7310d9ae","_id":"@davistran86/pm2-windows-service@1.0.2","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-qxZzGo5V46xewTjz4cfFLDptMP01SAffgH4i4KKjGPOjRhPE4tv8KH1qECzWKPZdHRiTsl/hvTiliOaqxy6h/g==","shasum":"81418f67fc516f8329c14ca8184bd5f68d8db6ff","tarball":"https://registry.npmjs.org/@davistran86/pm2-windows-service/-/pm2-windows-service-1.0.2.tgz","fileCount":11,"unpackedSize":20847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7EJbCRA9TVsSAnZWagAAQSwQAJtAhWXnC8SLXHz4BHmm\npQpbFWE0v7lNVAYhjvzEB1GM0XMgOs0FGEY4HVls7KCj4UZ2/XNScCIKcxmE\nQHDbTVsogEzP6tHhS4XQW1I/znWzUN/kQ3ITCtX6W9nv/10T12m4Ug2fATGK\niirlEa9X0vqfSb7K4NAGaKb7K5KciPAz46CldzdvRB9J5gqNxsGxzgqaZ6wn\ntDTk/3ERkn6I3OdAGQLrIUXhT+TkkzNQdxynWl7Z6Ku8/ecuDfy8ga/A6GXm\neZJBYN4b0/AcA0IJ+1XjVUhiaL3ivOKEcuk/3A7Ol57ZPVr4+mEGxafEk1nh\n0ItV+EoHavkx0sH7X6UsWIasOVtN4/yAyftGP/hRveNda6/hlxX1a0DsGjNc\nh7yPwFJoUO42LAzBAv7PmlKNeSFRJECr6lVYxO30QHNkHJNCuiJTeGhaJzYs\nXT4MOkzL+QASGAAWtjKJkobUtLKKeDHlvssooNjlyxHaZv1cngR5lc0UdoW6\nA0XasC9x0uTfKGJkSFeEZTGkOZ88/wSe/kfEacrTpP2htcP7ekPZeg2M8FcR\nKyWfLHxqxr3yd1xg3LqFWvxLNYrd5DRxXy5Hw5jBsC4GMrzpdJw0yH5AAKcs\nY1ScWA8XgNZPFWnqiV9XCS16Wa/JlIwmZHIJlbFgnBpu8tmU0cJKvLqO6Dbo\nfiJk\r\n=PHkS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIACsU/2vudvoWJ/4dtCEU4kngEwAfrA2hy45ePisfBY9AiAHgLP8XrgHTiJaYKV4iod2a9PDK4IJqV4LU+ZWojtCow=="}]},"_npmUser":{"name":"davistran86","email":"codered.vn@gmail.com"},"directories":{},"maintainers":[{"name":"davistran86","email":"codered.vn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pm2-windows-service_1.0.2_1609319002793_0.39617241171036977"},"_hasShrinkwrap":false}},"time":{"created":"2020-12-30T08:10:24.297Z","1.0.0":"2020-12-30T08:10:24.547Z","modified":"2022-04-05T03:10:41.242Z","1.0.1":"2020-12-30T08:47:58.417Z","1.0.2":"2020-12-30T09:03:22.932Z"},"maintainers":[{"name":"davistran86","email":"codered.vn@gmail.com"}],"description":"Install PM2 as a service on windows","homepage":"https://github.com/davistran86/pm2-windows-service#readme","keywords":["pm2","windows","service"],"repository":{"type":"git","url":"git+https://github.com/davistran86/pm2-windows-service.git"},"author":{"name":"Jon Hall","email":"jon_hall@outlook.com"},"bugs":{"url":"https://github.com/davistran86/pm2-windows-service/issues"},"license":"MIT","readme":"# pm2-windows-service\r\n\r\nAllows easily installing and uninstalling [PM2](https://github.com/Unitech/PM2/) as a service on Windows machines - forked from [pm2-windows-service](https://github.com/jon-hall/pm2-windows-service).\r\n\r\n```sh\r\n  npm i @davistran86/pm2-windows-service -g\r\n```\r\n\r\n## Documentation\r\n\r\nSee original documentation at [pm2-windows-service](https://github.com/jon-hall/pm2-windows-service)\r\n\r\n## Installation\r\n\r\n**NOTE:** Run these from an administrative command prompt to avoid getting hit with a bunch of UAC dialogs\r\n\r\n### NPM config\r\n\r\n```\r\nnpm config ls -l\r\n```\r\n\r\n### PM2\r\n\r\nIf you aleady have pm2 running and saved processes by using `pm2 save` then you can check it's location by using `pm2 resurrect`.\r\n\r\nYou can see something like this in console:\r\n\r\n```\r\n...[PM2] Restoring processes located in C:\\pm2\\.pm2\\dump.pm2\r\n```\r\n\r\nYou should use `C:\\pm2\\.pm2` as your PM2_HOME\r\n\r\n**NOTE:** If you are running pm2 as another user, you should put it in a location which is available to all users.\r\n\r\n### Prerequisites\r\n\r\n- Add and set **PM2_HOME** in System environments (not user environments). Like: `PM2_HOME = C:\\pm2\\.pm2` as above\r\n- Add `C:\\pm2\\.pm2` to the existing system PATH variable (Then you are sure it will work - there has been some issues reported that PM2_HOME not always working).\r\n\r\n### Install\r\n\r\n```\r\nnpm install pm2 -g\r\nnpm i pm2-windows-service -g\r\n```\r\n\r\n### Setup\r\n\r\n```\r\npm2-service-install -n ANY_NAME_HERE\r\n```\r\n\r\nANY_NAME_HERE will be the \"Display name\" of the Windows service\r\n\r\nNow set the following config:\r\n\r\n```\r\nPerform environment setup (recommended)? -> Yes\r\nSet PM2_HOME? -> No\r\nSet PM2_SERVICE_SCRIPTS (the list of start-up scripts for pm2)? -> Yes\r\nSet the list of startup scripts/files (semi-colon separated json config files or js files) -> ENTER (it will default to use PM2's dump.pm2 file - which is created when you run PM2 -f save)\r\nSet PM2_SERVICE_PM2_DIR (the location of the global pm2 to use with the service)? --> Yes\r\nSpecify the directory containing the pm2 version to be used by the service? ENTER\r\n```\r\n\r\n### Run as another user\r\n\r\nOpen Windows Services, find PM2 services (ANY_NAME_HERE), go to its Log On tab, choose This account and input your account there.\r\n\r\n### Uninstall\r\n\r\n```\r\npm2-service-uninstall\r\n```\r\n","readmeFilename":"README.md"}