Legacy Knowledge Base
Published Jul. 2, 2025

Liferay DXP 7.0 Theme Generator installation fails with Missing required argument #1 | EMISSINGARG

Written By

Alfonso Crisci

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • While following the Liferay documentation about 7.0 DXP theme building with the Theme Generator, the following error will be thrown on Terminal when running npm install -g yo gulp:
    npm ERR! Windows_NT 10.0.17134
    npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" "gulp"
    npm ERR! node v6.6.0
    npm ERR! npm  v3.10.3
    npm ERR! code EMISSINGARG

    npm ERR! typeerror Error: Missing required argument #1
    npm ERR! typeerror    at andLogAndFinish (C:\Program Files\nodejs\node_modules\npm\lib\fetch-package-metadata.js:31:3)
    npm ERR! typeerror    at fetchPackageMetadata (C:\Program Files\nodejs\node_modules\npm\lib\fetch-package-metadata.js:51:22)
    npm ERR! typeerror    at resolveWithNewModule (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:515:12)
    npm ERR! typeerror    at C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:516:7
    npm ERR! typeerror    at C:\Program Files\nodejs\node_modules\npm\node_modules\iferr\index.js:13:50
    npm ERR! typeerror    at C:\Program Files\nodejs\node_modules\npm\lib\fetch-package-metadata.js:37:12
    npm ERR! typeerror    at addRequestedAndFinish (C:\Program Files\nodejs\node_modules\npm\lib\fetch-package-metadata.js:67:5)
    npm ERR! typeerror    at returnAndAddMetadata (C:\Program Files\nodejs\node_modules\npm\lib\fetch-package-metadata.js:121:7)
    npm ERR! typeerror    at pickVersionFromRegistryDocument (C:\Program Files\nodejs\node_modules\npm\lib\fetch-package-metadata.js:138:20)
    npm ERR! typeerror    at C:\Program Files\nodejs\node_modules\npm\node_modules\iferr\index.js:13:50
    npm ERR! typeerror This is an error with npm itself. Please report this error at:
    npm ERR! typeerror    <http://github.com/npm/npm/issues>
    npm ERR! Windows_NT 10.0.17134
    npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" "gulp"
    npm ERR! node v6.6.0
    npm ERR! npm  v3.10.3
    npm ERR! code EMISSINGARG

    npm ERR! typeerror Error: Missing required argument #1

Environment

  • Liferay DXP 7.0
  • Liferay Theme Generator 7.x.x
  • Node.js v6.6.0
  • Windows 10
  • Latest yeoman and gulp

Resolution

  • Upgrade your Node.js version to the latest v12 LTS: v12.19.0

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base