Hi there! i can't execute an external JavaScript file by executing the node fileName command in the REPL like in the lessons...
I've been trying for days but can't solve the problem! help me please!
here the message:
minanutini@Air-di-Mina 1-node-farm % index.js
zsh: command not found: index.js
minanutini@Air-di-Mina 1-node-farm % node
Welcome to Node.js v16.13.0.
Type ".help" for more information.
index.js
Uncaught ReferenceError: index is not defined
node index.js
node index.js
^^^^^
Hi there! i can't execute an external JavaScript file by executing the node fileName command in the REPL like in the lessons... I've been trying for days but can't solve the problem! help me please! here the message:
minanutini@Air-di-Mina 1-node-farm % index.js zsh: command not found: index.js minanutini@Air-di-Mina 1-node-farm % node Welcome to Node.js v16.13.0. Type ".help" for more information.
Uncaught SyntaxError: Unexpected identifier