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

mgnl jumpstart error: ENOENT: no such file or directory, scandir 'C:\5.6.1\apache-tomcat\bin'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Neutral Neutral
    • None
    • 3.0.0
    • None
    • Windows 10, NodeJS 8.11.1 (LTS)

      Hello Magnolia

       

      Hoping you can help me?  I get the following error when using the mgnl jumpstart command while using mgnl cli 3.0.0 on windows 10.

      I have also tested this on a windows 7 machine and encounter the same problem.  Both machines have NodeJS 8.11.1 lts installed.

      The NodeJS install appears to function correctly on both machines (e.g. when using gulp for various tasks).  Neither machine has had a previous version of mgnl cli installed on it before, although I am familiar with v2.2.0 and have used it with great success in the past.

       

      Here is the error message:

      C:\5.6.1>mgnl jumpstart -m 5.6.1
      info Using configuration at C:\Users\Daniel\AppData\Roaming\npm\node_modules@magnolia\cli\lib\config\mgnl-cli.json
      info Using prototypes at C:\Users\Daniel\AppData\Roaming\npm\node_modules@magnolia\cli\lib\config\mgnl-cli-prototypes
      ? What Magnolia would you like to install? magnolia-enterprise-pro-webapp
      ? Username:
      ? Password:
      info No path option provided. Will use the default light-modules in the current directory
      info C:/5.6.1/light-modules does not seem to exist. Path will be created automatically.
      info Starting download from: https://nexus.magnolia-cms.com/service/local/artifact/maven/content?r=magnolia.public.releases&g=info.magnolia.tomcat.barebone&a=magnolia-tomcat-barebone&e=zip&v=LATEST
      Downloading [====================] 100% 0.0s
      info Starting download from: https://nexus.magnolia-cms.com/service/local/artifact/maven/content?r=magnolia.enterprise.releases&g=info.magnolia.eebundle&a=magnolia-enterprise-pro-webapp&e=war&v=5.6.1
      Downloading [====================] 100% 0.0s
      info Extracting...
      info magnolia-tomcat-barebone-1.0/apache-tomcat-8.5.5/ to C:\5.6.1\apache-tomcat
      info C:\5.6.1\C:\5.6.1\downloads\magnolia-enterprise-pro-webapp-5.6.1.war to C:\5.6.1\apache-tomcat\webapps\magnoliaAuthor
      info Extraction completed
      ERR! Error: ENOENT: no such file or directory, scandir 'C:\5.6.1\apache-tomcat\bin'

       

      If I manually create the bin folder and run the command again, I then encounter the following error:

       

      C:\5.6.1>mgnl jumpstart -m 5.6.1
      info Using configuration at C:\Users\Daniel\AppData\Roaming\npm\node_modules@magnolia\cli\lib\config\mgnl-cli.json
      info Using prototypes at C:\Users\Daniel\AppData\Roaming\npm\node_modules@magnolia\cli\lib\config\mgnl-cli-prototypes
      ? What Magnolia would you like to install? magnolia-enterprise-pro-webapp
      ? Username:
      ? Password:
      info No path option provided. Will use the default light-modules in the current directory
      info C:\5.6.1\downloads\magnolia-tomcat-barebone-1.0.zip already exists. It won't be downloaded again.
      info C:\5.6.1\downloads\magnolia-enterprise-pro-webapp-5.6.1.war already exists. It won't be downloaded again.
      info C:\5.6.1\apache-tomcat already exists. We won't extract it again.
      info Extracting...
      info magnolia-tomcat-barebone-1.0/apache-tomcat-8.5.5/ to C:\5.6.1\apache-tomcat
      info C:\5.6.1\C:\5.6.1\downloads\magnolia-enterprise-pro-webapp-5.6.1.war to C:\5.6.1\apache-tomcat\webapps\magnoliaAuthor
      info Extraction completed
      info Replacing Magnolia properties to prepare it for light development...
      ERR! ENOENT: no such file or directory, stat 'C:\5.6.1\apache-tomcat\webapps\magnoliaAuthor\WEB-INF\config\default\magnolia.properties'
      ERR! Error: ENOENT: no such file or directory, stat 'C:\5.6.1\apache-tomcat\webapps\magnoliaAuthor\WEB-INF\config\default\magnolia.properties'
      ERR!
      ERR!
      ERR! mgnl: 3.0.0 node: v8.11.1 os: win32
      ERR! please open an issue including this log on https://jira.magnolia-cms.com/browse/NPMCLI

       

      Hoping you can help, many thanks in advance for your support.

      Daniel

        Acceptance criteria

              Unassigned Unassigned
              dobrien Daniel O'Brien
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD