Providing a package.json file for your project settings

Your Node.js project must contain a package.json for NPM and must be placed in the root path folder. It is required by our platform to install your app dependencies.

If you don't yet have a package.json file, you can run the following command in your project folder:

npm init

Your package.json will look like the following example:

  "name": "my-openode-example",
  "version": "1.0.0",
  "description": "This app rocks :].",
  "main": "web.js",
  "scripts": {
    "test": "echo \"Error: I don't have any test yet :-[\" && exit 1"
  "keywords": [
  "author": "homer-beer",
  "license": "MIT"
Whenever you have new dependencies, you can run for instance the following:
npm install express --save

In this example, we added express on our project - this will add a new entry in package.json.


1- On opeNode, we have an automatic mechanism for finding package.json - your package.json file should be placed in the root path (/) of your project.

2- If you are using an opeNode template, a start script must be provided. See NPM for more information.