question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting a syntax error while executing cml on CLI

See original GitHub issue

I installed CML using

sudo npm i -g @dvcorg/cml

but getting this error whenever I execute any CML commands.

>> cml ci --help
/usr/lib/node_modules/@dvcorg/cml/src/drivers/bitbucket_cloud.js:383
        responseBody?.error?.message || responseBody?.error || responseBody;
                     ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/usr/lib/node_modules/@dvcorg/cml/src/cml.js:11:24)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

Is there a proper way to test whether the installation has been done correctly?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
dacbdcommented, Apr 13, 2022

perhaps a v0.14.2 with the correct engine semver and de-publish the 0.14.1 on npm so it’s not accidentally downloaded on a <16.x node version?

1reaction
abhishekPurandare-obscommented, Apr 18, 2022

Okay…Working after upgrade the nodejs version to v16.14.2. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

syntax error when using command line in python
You can simply type exit() in the Python terminal to exit the Python interpreter. Then when you run the code, there will be...
Read more >
Tutorial Exercise 2 - Analysis Exception Syntax error
I am in Impala running through the Quickstart tutorial. When I copy all the create table statements and click execute, I get this...
Read more >
Command Line Interface [Cisco Unified Contact Center Express]
This command displays the various components in Unified CCX for which tracing can be turned on or off from CLI commands. This command...
Read more >
Command line processor options - IBM
-s, This option tells the command line processor to stop execution if errors occur while commands are executed in a batch file or...
Read more >
A.19. Common libvirt Errors and Troubleshooting
This entry provides instructions for editing guest XML definitions, and details common errors in XML syntax and configuration. Section A.19.10, “Common XML ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found