Error when installing @elastic/synthetics

Hello,

I'm trying to install npm install -g @elastic/synthetics on my local server but getting an error when running the command:

loadCurrentTree           ▀ ╢█████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @elastic/synthetics@1.0.0-beta.31: wanted: {"node":">14.14.0"} (current: {"node":"8.10.0","npm":"3.5.2"})
loadDep:undici → request  ▌ ╢███████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:undici → resolveW ▌ ╢███████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:undici → 304      ▄ ╢███████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
npm ERR! Linux 5.4.0-1086-azure
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "@elastic/synthetics"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code EMISSINGARG

npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror     at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror     at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror     at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror     at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror     at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror     at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror     at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror     at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror     at /usr/share/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>
WARN engine expect@28.1.3: wanted: {"node":"^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0"} (current: {"node":"8.10.0","npm":"3.5.2"})
WARN engine sharp@0.30.7: wanted: {"node":">=12.13.0"} (current: {"node":"8.10.0","npm":"3.5.2"})
WARN engine archiver@5.3.1: wanted: {"node":">= 10"} (current: {"node":"8.10.0","npm":"3.5.2"})
WARN engine undici@5.8.1: wanted: {"node":">=12.18"} (current: {"node":"8.10.0","npm":"3.5.2"})
npm ERR! Linux 5.4.0-1086-azure
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "@elastic/synthetics"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code EMISSINGARG

npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror     at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror     at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror     at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror     at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror     at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror     at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror     at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror     at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror     at /usr/share/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>
WARN engine playwright-core@1.20.1: wanted: {"node":">=12"} (current: {"node":"8.10.0","npm":"3.5.2"})

npm ERR! Please include the following file with any support request:
npm ERR!     /etc/heartbeat/monitors.d/synthetics/npm-debug.log

and the error in npm-debug.log:

418 verbose addNameRange registry:https://registry.npmjs.org/kleur not in flight; fetching
419 verbose stack Error: Missing required argument #1
419 verbose stack     at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
419 verbose stack     at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
419 verbose stack     at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
419 verbose stack     at /usr/share/npm/lib/install/deps.js:457:7
419 verbose stack     at /usr/share/npm/node_modules/iferr/index.js:13:50
419 verbose stack     at /usr/share/npm/lib/fetch-package-metadata.js:37:12
419 verbose stack     at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
419 verbose stack     at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
419 verbose stack     at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
419 verbose stack     at /usr/share/npm/node_modules/iferr/index.js:13:50
420 verbose cwd /etc/heartbeat/monitors.d/synthetics
421 error Linux 5.4.0-1086-azure
422 error argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "@elastic/synthetics"
423 error node v8.10.0
424 error npm  v3.5.2
425 error code EMISSINGARG
426 error typeerror Error: Missing required argument #1
426 error typeerror     at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
426 error typeerror     at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
426 error typeerror     at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
426 error typeerror     at /usr/share/npm/lib/install/deps.js:457:7
426 error typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
426 error typeerror     at /usr/share/npm/lib/fetch-package-metadata.js:37:12
426 error typeerror     at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
426 error typeerror     at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
426 error typeerror     at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
426 error typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
427 error typeerror This is an error with npm itself. Please report this error at:
427 error typeerror     <http://github.com/npm/npm/issues>
428 verbose exit [ 1, true ]

Any ideas what missing argument should it be?

Thanks

As it turned out we were running an old version of node. After upgrading to latest the issue is no more.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.