Install npm packages without sudo

By Tim Kamanin 1) Set yourself as an owner of ~/.npm directory, like this: sudo chown -R $(whoami) ~/.npm and if error persists, set yourself as an owner /usr/local/lib/node_modules directory too, like this: sudo chown -R $(whoami) /usr/local/lib/node_modules Now you can install npm packages without sudo.   Copy from https://timonweb.com/posts/install-npm-packages-without-sudo/  

Auto start pm2 when reboot Windows

install pm2: $ npm install pm2 -g install mp2 start for windows $ npm install pm2-windows-startup -g   install pm2 window service $ npm i pm2-windows-service -g $ pm2-service-install [-n <service name>] and go to this install path: C:\Users\Administrator\AppData\Roaming\npm\node_modules\pm2-windows-service\src\daemon\ and find file is called “mp2node” and edit at <argument>[js file].js</argument> to path of your javascript file and save and reboot service in “Service.msc”      Continue reading “Auto start pm2 when reboot Windows”

ActiveMQ 4 Node.JS

By: Zak Hassan (Software Developer | Research Assistant , Seneca College, Toronto, ON) What is ActiveMQ? Can we integrate ActiveMQ with Node.JS ? Implementation: Introduction?   Java Messaging Services. Used for sending messages from application to application Used for enterprise messaging which is referred to as MOM ( Message Oriented Middleware ) Messages contain business data and areContinue reading “ActiveMQ 4 Node.JS”