Oi Raphael, obrigada pela ajuda. Eu fiz porém segue dando erro:
(base) Admins-MacBook-Air:~ admin$ ls
Applications Movies Soluti.logs
Creative Cloud Files Music Teste.ipynb
(base) Admins-MacBook-Air:~ admin$ node-v
bash: node-v: command not found
(base) Admins-MacBook-Air:~ admin$ listas.js
bash: listas.js: command not found
(base) Admins-MacBook-Air:~ admin$ admin/desktop/listas.js
bash: admin/desktop/listas.js: No such file or directory
(base) Admins-MacBook-Air:~ admin$ ls
Applications Movies Soluti.logs
Creative Cloud Files Music Teste.ipynb
Desktop PathKeys.urlDocuments Pictures index.html
Downloads Projetos Python opt
Library Public
(base) Admins-MacBook-Air:~ admin$ listas.js
bash: listas.js: command not found
(base) Admins-MacBook-Air:~ admin$ node listas.js
node:internal/modules/cjs/loader:927
throw err;
^
Error: Cannot find module '/Users/admin/listas.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15)
(base) Admins-MacBook-Air:~ admin$ node-v
bash: node-v: command not found
(base) Admins-MacBook-Air:~ admin$ node /Users/admin/desktop/listas.js
/Users/admin/desktop/listas.js:
SyntaxError: Unexpected end of input
at Object.compileFunction (node:vm:355:18)
at wrapSafe (node:internal/modules/cjs/loader:1022:15)
at Module.compile (node:internal/modules/cjs/loader:1056:27)
at Object.Module.extensions..js (node:internal/modules/cjs/loader:1121:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module.load (node:internal/modules/cjs/loader:813:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/runmain:76:12)
at node:internal/main/run_main_module:17:47
(base) Admins-MacBook-Air:~ admin$ node /Users/admin/desktop/listas.js
/Users/admin/desktop/listas.js:8
SyntaxError: Unexpected end of input
at Object.compileFunction (node:vm:355:18)
at wrapSafe (node:internal/modules/cjs/loader:1022:15)
at Module.compile (node:internal/modules/cjs/loader:1056:27)
at Object.Module.extensions..js (node:internal/modules/cjs/loader:1121:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module.load (node:internal/modules/cjs/loader:813:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/runmain:76:12)
at node:internal/main/run_main_module:17:47
(base) Admins-MacBook-Air:~ admin$
(base) Admins-MacBook-Air:~ admin$ node listas.js
node:internal/modules/cjs/loader:927
throw err;
^
Error: Cannot find module '/Users/admin/listas.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15)
(base) Admins-MacBook-Air:~ admin$ node-v
bash: node-v: command not found
(base) Admins-MacBook-Air:~ admin$ node /Users/admin/desktop/listas.js
/Users/admin/desktop/listas.js:8
SyntaxError: Unexpected end of input
at Object.compileFunction (node:vm:355:18)
at wrapSafe (node:internal/modules/cjs/loader:1022:15)
at Module.compile (node:internal/modules/cjs/loader:1056:27)
at Object.Module.extensions..js (node:internal/modules/cjs/loader:1121:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module.load (node:internal/modules/cjs/loader:813:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/runmain:76:12)
at node:internal/main/run_main_module:17:47
(base) Admins-MacBook-Air:~ admin$