| The dev blog for cloudno.de, a new Node.js hosting platform.

Managing Package Dependencies Is Now a Lot Easier Thanks to NPM

There has always been the "cloudnode npm install <package>" command to add packages to your hosted node.js application. These steps were manual and could easily miss a dependency. 

NPM has this great feature npm install, that reads a meta file called package.json which describes all required packages and versions.

This command is now part of the git workflow. During git push operations the platform code looks for a package.json file in the main app directory and executes "npm install" on it. All dependencies are now resolved by the package manager.

This works also during updates. Whenever a new package or package version is needed by your app, just edit the package.json file and see NPM doing its magic.