Uploaded image for project: 'Magnolia CLI'
  1. Magnolia CLI
  2. NPMCLI-111

mgnl build throws if no argument given

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.1.0
    • 2.0
    • None
    • Basel 87
    • 0.5

      Expected: the help text for the command.

      Currently:

      $ mgnl build
      ERR! ENOENT: no such file or directory, scandir 'node_modules'
      ERR! Error: ENOENT: no such file or directory, scandir 'node_modules'
      ERR!     at Error (native)
      ERR!     at Object.fs.readdirSync (fs.js:951:18)
      ERR!     at getLightModules (/Users/robert/magnolia/npm-cli/node_modules/@magnolia/magnolia-build/build.js:21:24)
      ERR!     at build (/Users/robert/magnolia/npm-cli/node_modules/@magnolia/magnolia-build/build.js:55:22)
      ERR!     at Object.<anonymous> (/Users/robert/magnolia/npm-cli/bin/mgnl-build.js:24:1)
      ERR!     at Module._compile (module.js:556:32)
      ERR!     at Object.Module._extensions..js (module.js:565:10)
      ERR!     at Module.load (module.js:473:32)
      ERR!     at tryModuleLoad (module.js:432:12)
      ERR!     at Function.Module._load (module.js:424:3)
      ERR!
      ERR!
      ERR! mgnl: 2.0.1-snapshot node: v6.5.0 os: darwin
      ERR! please open an issue including this log on https://jira.magnolia-cms.com/browse/NPMCLI
      
      

        Acceptance criteria

              rkowalski Robert Kowalski
              rkowalski Robert Kowalski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD