Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-2661

when running npm start I got an error on a fresh mac

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Cannot Reproduce
    • Neutral
    • None
    • None
    • None
    • None

    Description

      "npm run install" seemed to work fine.
      "npm start" threw me the following error:

      node:internal/modules/cjs/loader:1078
        throw err;
        ^
      
      Error: Cannot find module 'unpipe'
      

      So after googling a bit I've found the following:
      https://stackoverflow.com/questions/9023672/how-do-i-resolve-cannot-find-module-error-using-node-js?page=1&tab=scoredesc#tab-top

      I made it work after:
      1) deleting node_modules folder
      2) running "npm run install -g" => I guess from the previous URL global installation allows you to use the module under any directory
      3) running "npm run install" => so the node_modules folder is again generated

      So I would just add a documentation tip something in case they face that error they need to follow these 3 steps.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mdrapela Martin Drápela
              smarino Sergio Marino
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: