Category Archives: Node.js

Install node.js via npm

I recently wrote about the manual installation of Node.js. There is also the way via the npm Package manager: First, install all dependencies: Add a new ppa repository: Update all repositories And finally install Node.js

Posted in Development, Linux, Node.js, Technology | Tagged , , , , | Leave a comment

Reading a file in Node.js

Node.js provides two simple methods to read a file in sync and async. Reading a file in sync comes in handy if you’ll read a config file right before the the actual programs should run. Reading a file async: Reading … Continue reading

Posted in Development, Node.js | Tagged , | Leave a comment

node.js: How to get all installed npm packages and the related version

The argument list of npm shows all locally installed packages and the related version. With the argument -g the command shows all globally installed packages.

Posted in Development, Node.js | Tagged , | Leave a comment

node.js: How to run express and socket.io on the same port

The express web server and socket.io are very handy modules for node.js. Either of the modules can listen to the same port, because the modules use different protocols. But how can this be configured? The ‘How to use” section of … Continue reading

Posted in Development, Node.js | Tagged , , , | Leave a comment

A simple web server with node.js

I do a lot of things in node.js lately. For anyone who heard node.js for the first time I quote the description from the official website: Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast, scalable … Continue reading

Posted in Node.js | Tagged , , | Leave a comment