Last active
October 2, 2020 10:44
-
-
Save jack2jm/2a7f585a67efa5051bdda7ba09956de6 to your computer and use it in GitHub Desktop.
Install NPM, PM2, Puppeteer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt install curl | |
sudo apt install git-all | |
sudo apt-get install nodejs | |
sudo apt install npm | |
npm install (download all required) | |
---------- | |
sudo npm install express | |
sudo npm install -g puppeteer --unsafe-perm=true | |
sudo apt install chromium-browser ( chromium erro - then try this : node node_modules/puppeteer/install.js (this will chromium revision install)) | |
(if chrome revisoin error got then install yarn) | |
npm install -g yarn | |
yarn install | |
-------------- | |
Install process manager | |
sudo npm install pm2 -g | |
pm2 startup | |
pm2 start jatin.js | |
pm2 start jatin.sh | |
---------------------------------- | |
watch logs on linux | |
pm2 logs here_id_of_running_file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment