PM2 log output limits
Try this pm2 logs ‘YOUR_PROCESS’ –lines 1000
Try this pm2 logs ‘YOUR_PROCESS’ –lines 1000
node-sass has been deprecated. It has been transformed to the npm package sass now. You can uninstall the old and install the new one npm uninstall node-sass npm install sass Many issues also those during installation have been fixed with this.
You can achieve this by tacking on a superRefine export const registerUserSchema = z.object({ firstName: z.string(), lastName: z.string(), userName: z.string(), email: z.string().email(), phone: z.string().transform(data => Number(data)), password: z.string().min(4), confirmPassword: z.string().min(4), avatar: z.string().optional(), isVerified: z.boolean().optional() }).superRefine(({ confirmPassword, password }, ctx) => { if (confirmPassword !== password) { ctx.addIssue({ code: “custom”, message: “The passwords did not match” … Read more
Puppeteer is just a library to drive Chrome/Chromium, so if anything goes wrong while using it, our best bet is to open Chromium with puppeteer.launch({headless:false}) and debug there. Set your page css in <style></style> tag. You can solve the issue with the following CSS code: html { -webkit-print-color-adjust: exact; } p { color: #FF0000; }
Here are some of the things I learned while trying to debug this. Stripe checkout uses AWS Cloudfront and it does not allow options requests (as per Stripe’s config) OPTIONS request are not sent to Stripe when I change the request type in the frontend to text/plain. (Yes, that’s right, after my server returns the … Read more
You can use the ps-node package. https://www.npmjs.com/package/ps-node var ps = require(‘ps-node’); // A simple pid lookup ps.lookup({ command: ‘node’, psargs: ‘ux’ }, function(err, resultList ) { if (err) { throw new Error( err ); } resultList.forEach(function( process ){ if( process ){ console.log( ‘PID: %s, COMMAND: %s, ARGUMENTS: %s’, process.pid, process.command, process.arguments ); } }); }); … Read more
You can get the path to the executable to where node was installed with nvm which node Or any of the other NVM special aliases for node versions such as nvm which default
Angular CLI requires a current, active LTS, or maintenance LTS version of Node (https://angular.io/guide/setup-local#nodejs). which version 11 isn’t. Node.JS 11 is no longer supported by the Node.Js team as after six months, odd-numbered releases (9, 11, etc.) become unsupported. More info: https://nodejs.org/en/about/releases Solution : Upgrade Node version to 12+