javascript - 'Can't find module fs' when running casperjs on js file -
i trying run casperjs on javascript file have, , when run
> casperjs index.js
it says
'caspererror: cant find module fs'.
the first line of index.js is
var fs = require('fs');
i have node, casperjs, , phantomjs installed, why can't find fs? if correct, fs node's file system?
update: added nodejs $path, still no luck.
did install phantomjs/casperjs modules node fs module in project? don't seem mix well.
i ran issue installed of these modules , getting same error message mentioned above.
caspererror: can't find module fs
once uninstalled node 'fs' module, worked fine.
npm uninstall fs
Comments
Post a Comment