I have a software to get attached file from specific email real time. It had made by node js. It works well window 7. Here is Directory structure.
- > ---
myfolder| -- node_modules (<code>imap</code>,<code>mime</code>,<code>fs</code>,<code>ftp</code> ......) -- run.bat -- uploadCSV.js</li>
MacOS, I have made run.command file instead of run.bat file.
Content of run.bat --- node upload.CSV
Content of run.command --- #!/bin/bash
node uploadCSV.js
When I installed nodejs in MacOS and double click run.command, some error comes up like below.
Last login: Fri Jan 16 10:19:23 on ttys000
Mimis-Mac-mini:~ mimi$ /Users/mimi/Documents/app/run.command ; exit;
module.js:340
throw err;
^
'rror: Cannot find module '/Users/mimi/uploadCSV.js
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:929(cat)
logout
I don't know well about shell script for MacOS. Help me ! Why can I fix this error? Thanks, Tomi