MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

npm ERR! missing script: start

  • as the heading says, i have a problem starting my module. npm start causes the following error:
    npm ERR! missing script: start
    here is my package.json file:

      "name": "emetalcharts",
      "version": "1.0.0",
      "description": "charting commodity prices",
      "main": "emetalcharts.js",
      "private": "true",
      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1"
      "repository": {
        "type": "git",
        "url": "git+"
      "author": "",
      "license": "MIT",
      "bugs": {
        "url": ""
      "homepage": "",
      "dependencies": {
        "chart.js": "^2.5.0",
        "sqlite3": "^4.2.0"

    the following is recommended on many websites:

      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1",
        "start" : "node ."

    this then causes the following error message :

    Module.register("emetalcharts", {
    ReferenceError: Module is not defined

    I’m done. Who can help me ?
    could it also be a version conflict?
    my versions:

     $ node --version
    $ npm --version

    Thanks in advance
    so long

  • Project Sponsor

    @Perlchamp - Did you run npm install inside the module folder?

  • yes, of course. thank you
    this did install the node_module folder in my module folder

  • Module Developer

    @Perlchamp Are you running npm start inside the module folder?
    I’m not an expert on this, but I think Module is a class that belongs to the MagicMirror environment. Your module as a standalone does not know what to do with it.
    If you run npm start in the MagicMirror folder, it would recognize the code.

  • yes, of course. thank you.

Log in to reply