30 days of Postman, Day 13 error trying to use Node.js

I’m trying to run this step in the Day 13 challenge, in Node.js:

$ npm install -g newman

But, this is the message that I get in Node.js:
Uncaught SyntaxError: Unexpected identifier ‘npm’

Is there something I am missing, such as npm?

Hi @bemo2023

When you say “in Node.js” what exactly do you mean?

Do you mean red arrow or green arrow?
image

This command should be run in the command prompt.

For ref; screenshot taken from here: javascript - node js returning Syntax error: Unexpected identifier - Stack Overflow

1 Like

ah yes, that was my problem. I was using Node.js, not Node.js command prompt

thank you!

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