Alfresco / alfresco-docker-installer

Generator to build Docker Compose templates to deploy Alfresco Community
Other
142 stars 58 forks source link

this.npmInstall is not a function #97

Closed wolmos-mrbau closed 2 years ago

wolmos-mrbau commented 2 years ago

Gettin the error this.npmInstall is not a function when trying to install alfresco with the installer on CentOS Linux release 8.4.2105, 4.18.0-305.19.1.el8_4.x86_64

yo alfresco-docker-installer

             ,****.
        ,.**. `*****  <-_
       ******** ***** ####
      $********::**** ####;
      _.-._`***::*** ######
    ,*******, *::* .;##### @
    **********,' -=#####',@@@
    ***' .,---, ,.-==@@@@@@@@
     * /@@@@@',@ @\ '@@@@@@@
      '@@@@/ @@@ @@@\ ':#'
      !@@@@ @@@@ @@@@@@@@@^
       @@@@ @@@@@ @@@@@@@'
        `"$ '@@@@@. '##'
             '@@@@;'

     DOCKER COMPOSE ALFRESCO

? Which ACS version do you want to use? 7.1
? How may GB RAM are available for Alfresco (16 is minimum required)? 16
? Do you want to use HTTPs for Web Proxy? Yes
? What is the name of your server? dms01.company.local
? What HTTPs port do you want to use (all the services are using the same port)? 443
? Do you want to use FTP (port 2121)? Yes
? Do you want to use MariaDB instead of PostgreSQL? No
? Are you using different languages (this is the most common scenario)? Yes
? Would you like to use HTTP or Shared Secret for Alfresco-SOLR communication? http
? Do you want to create an internal SMTP server? No
? Do you want to create an internal LDAP server? No
? Select the addons to be installed: Google Docs 3.1.0, JavaScript Console 0.7, Order of the Bee Support Tools 1.0.0.0, Share Site Creators 0.0.7, Alfresco OCR Transformer 1.0.0 (for Alfresco 7+), ESign Cert 1.8.2
? Are you using a Windows host to run Docker? No
? Do you want to use a start script? Yes
Error alfresco-docker-installer

this.npmInstall is not a function
wolmos-mrbau commented 2 years ago
$ yo doctor

Yeoman Doctor
Running sanity checks on your system

✔ No .bowerrc file in home directory
✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ No .yo-rc.json file in home directory
✔ Node.js version
✔ npm version
✔ yo version

Everything looks all right!
$ npm version
{
  npm: '7.24.2',
  node: '12.22.5',
  v8: '7.8.279.23-node.56',
  uv: '1.40.0',
  zlib: '1.2.11',
  brotli: '1.0.6',
  ares: '1.17.2',
  modules: '72',
  nghttp2: '1.41.0',
  napi: '8',
  llhttp: '2.1.3',
  http_parser: '2.9.4',
  openssl: '1.1.1g',
  cldr: '37.0',
  icu: '67.1',
  tz: '2019c',
  unicode: '13.0'
}
aborroy commented 2 years ago

This looks like a problem with this option:

? Do you want to use a start script? Yes

Is that required for yo?

wolmos-mrbau commented 2 years ago

You are right, without the start script option the installer is working without issues. The start script is convenient, but not required. Thanks.

aborroy commented 2 years ago

May you try with the latest version? I made a change on loading npm dependencies for start script.

wolmos-mrbau commented 2 years ago

Tested with the latest version and it's working fine. The issue has been fixed. Thanks