amandaghassaei / ScratchSerialExtension

A Serial Communication Extension for Scratch
http://scratchx.org/?url=http://cdn.rawgit.com/amandaghassaei/ScratchSerialExtension/281d2f3fd45102a65fc798b03bb920b07c693211/serial_port_extension.js#scratch
11 stars 14 forks source link

BUG: getting error when typing and running node nodeServer.js #3

Open Glaferg opened 5 years ago

Glaferg commented 5 years ago

i type this in after running and installing everything and this happens:

Marks-MacBook-Pro:~ gabriel$ node nodeServer.js internal/modules/cjs/loader.js:583 throw err; ^

Error: Cannot find module '/Users/gabriel/nodeServer.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15) at Function.Module._load (internal/modules/cjs/loader.js:507:25) at Function.Module.runMain (internal/modules/cjs/loader.js:742:12) at startup (internal/bootstrap/node.js:282:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) Marks-MacBook-Pro:~ gabriel$

please help

BlaT2512 commented 5 years ago

Make sure you are in the directory of the file nodeServer.js (use cd to set the directory of the folder containing nodeServer.js)