I am getting the following error in windows while running spookyjs but code is working in linux.
Error
events.js:85
throw er; // Unhandled 'error' event
^
Error: spawn casperjs ENOENT
at exports._errnoException (util.js:746:11
at Process.ChildProcess._handle.onexit (ch
at child_process.js:1137:20
at process._tickCallback (node.js:355:11)
Note:
I have installed all the dependencies and added the PATH varaiables
- Phantomjs
- Python
- casperjs - Installed globally using
npm install -g casperjs
In the command prompt casperjs is working
What I have tried:
Installed npm as global using
npm install -g npmUninstalled
0.12and downgraded to0.10.Added System variable
C:\Windows\System32;.
Any idea or suggestion will be grateful