Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Node.js returning Syntax error: Unexpected identifier

I installed Node.js 19.6.0. Now, if I open the Node.js window and type in "git clone https://github.com/openai/openai-quickstart-node.git" to download the repository i get the error Unexpected identifier ‘clone’. I am completely new to Node.js and dont understand the reason. Could you help me out?

git clone https://github.com/openai/openai-quickstart-node.git
^^^^^

Uncaught SyntaxError: Unexpected identifier ‘clone’

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

best regards
Robert

Opende Node.js and tried to trigger a command

>Solution :

Your mistake here is that you’re trying to use git clone inside of the Node.js interpreter, which is something different than the command line. To clone a repository, you’ll need to use the command line on your machine with Git installed.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading