Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. I'm using version for casperjs = 1.1.3
  2. phatomjs version = 2.1.1
  3.  
  4. CasperError: Cant find module fs
  5. casperjs sample.js
  6. CasperError: Can't find module fs
  7.  
  8. phantomjs://code/bootstrap.js:297 in patchedRequire
  9. phantomjs://platform/colorizer.js:35
  10. CasperError: Can't find module fs
  11.  
  12. phantomjs://code/bootstrap.js:297 in patchedRequire
  13. phantomjs://platform/casper.js:36
  14. TypeError: undefined is not a constructor (evaluating 'require('casper').create()')
  15.  
  16. phantomjs://code/sample.js:1 in global code
  17. :0 in injectJs
  18. phantomjs://code/bootstrap.js:435
  19.  
  20. var casper = require('casper').create();
  21.  
  22. casper.start('http://casperjs.org/', function() {
  23. this.echo(this.getTitle());
  24. });
  25.  
  26. casper.thenOpen('http://phantomjs.org', function() {
  27. this.echo(this.getTitle());
  28. });
  29.  
  30. casper.run();
  31.  
  32. {
  33. "name": "automationtools",
  34. "version": "1.0.0",
  35. "description": "",
  36. "main": "index.js",
  37. "scripts": {
  38. "test": "echo "Error: - no test specified" && exit 1",
  39. "start": "./node_modules/.bin/casperjs main.js"
  40. },
  41. "author": "",
  42. "license": "ISC",
  43. "dependencies": {
  44. "casperjs": "^1.1.3",
  45. "fs": "0.0.1-security",
  46. "phantomjs": "^2.1.7"
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement