2021 JavaScript Programming for Blockchain Developers

Can somebody please help me with the following?

I Have just begun the JAVA Script section of the course above. As requested by the instructor, I have installed node js and rebooted visual studio code.

I have then followed his instructions in the “Hello Moralis” section but can’t get the java script to run correctly.

I have checked that node has been installed using node -v and its telling me current version v16.13.2 is installed.

Code in hello-moralis.js
console.log(“Hello, Moralis!”);

zsh terminal
[email protected] MORALIS % node hello-moralis
throw err;

Error: Cannot find module ‘/Users/michaelskiffington/Desktop/MORALIS/hello-moralis’
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
requireStack: []
The instructor is using powershell but I don’t have this as an option… I’m not even sure if this is the reason I’m unable to run the code correctly

If anyone could contribute to the above I will greatly appreciate. I am facing the same issue.

Based on this same issue, https://stackoverflow.com/questions/68692968/node-js-nodeinternal-modules-cjs-loader936-error-while-trying-to-use-discord-j

Be sure you are in the right folder where the file exist, and maybe you might have to run the command has admin (sudo)

Carlos Z

I am in the directory, MORALIS-JS, and this is the location of the file hello/moralis.js, but node hello-moralis does not work