Yousef Golnahali
Yousef Golnahali

Reputation: 55

Node.js SyntaxError: Unexpected identifier while setting Forge Viewer

i want to run autodesk forge viewer and setting Node.js based on Autodesk tutorial, but got this error:

SyntaxError: Unexpected identifier

enter image description here

How can i fix this?

Thanks!

Upvotes: 1

Views: 408

Answers (1)

Ashvin777
Ashvin777

Reputation: 1482

In Node.js console, you have to use JavaScript syntax and not some shell or bash code. You are executing set VAR=xx here which is not JavaScript syntax.

Since you want to set environment variable you should exit from Node.js terminal and open plain cmd terminal first, execute these set commands and then open Node.js terminal with command node and then do what you want to do.

Upvotes: 3

Related Questions