Nodejs Command

Nodejs Kill Command
Stop all instances of node.js server

taskkill /f /im node.exe

To Check Nodejs Outdated package versions

npm outdated

2. Use npm install @latest for Each Dependency

npm install react@latest

3. Use a Package Like npm-check-updates – This will upgrade all the version hints in the package.json to the latest versions. you’ll need to run npm install to install the new versions as per the updated

npm install -g npm-check-updates
ncu -u

4. Delete package-lock.json and node_modules

rm -rf node_modules package-lock.json
npm install

React JS Issue , due to SVG error

Use an SVG Cleanup Tool
Tools like SVGO can help automatically clean up SVG files to make them more compatible with web standards and thus more likely to work seamlessly when processed by build tools like webpack. You can integrate SVGO into your build process or run it manually on your SVG assets.

SVGO, short for SVG Optimizer, is a Node.js library and command-line application for optimizing SVG files.
https://github.com/svg/svgo

npm install -g svgo
svgo -f path/to/directory_with_svgs -o path/to/output_directory
svgo -f D:\website\src\assets\images\job -o D:\website\src\test_images\job

Leave a Reply

Your email address will not be published. Required fields are marked *