json. Simply change into the directory containing nodemodules, backup any existing package.json in there, then use npm init to re-create the package.json. Packaging. Nodes can be packaged as modules and published to the npm repository.Along with the usual entries, the package.json file must contain a node-red entry that identifies what nodes the module provides, along with a pointer to their .js files. init-package-json. A node module to get your node module started.NodeJS package.json version number fetcher. Node.js is an official trademark of Joyent. Ill also show you how to work with package.