Quote:
Originally Posted by Syl0pt
Ok well I reinstalled Node.js and am still having the same error thrown up
node main.js
module.js:529
throw err;
^
Error: Cannot find module 'bluebird'
at Function.Module._resolveFilename (module.js:527:15)
at Function.Module._load (module.js:476:23)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/syl0pt/Videos/mfc-node-2/main.js:3:15)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
I could really use some help here.
|
Ugh.. my apologies.. I forgot to add 'npm install' to the mfc-node-2 directory. Once I did that everything started working.
Although I am still interested in getting the Forever app to properly work with mfc-node.
On my Windows PC I was able to use this as a bat file:
Bat file contents:
@echo off
SET foo=1
:initiate
ECHO Starting program, attempt %foo%
node main.js
set /A foo=foo+1
timeout 30
goto :initiate
I got it working by changing the 'node main.js' line to mfc.exe (which is what i was using at the time). But it doesn't work for me with 'node main.js' on Linux Mint 18. Not sure what i'm doing wrong.