Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I'm using version for casperjs = 1.1.3
- phatomjs version = 2.1.1
- CasperError: Cant find module fs
- casperjs sample.js
- CasperError: Can't find module fs
- phantomjs://code/bootstrap.js:297 in patchedRequire
- phantomjs://platform/colorizer.js:35
- CasperError: Can't find module fs
- phantomjs://code/bootstrap.js:297 in patchedRequire
- phantomjs://platform/casper.js:36
- TypeError: undefined is not a constructor (evaluating 'require('casper').create()')
- phantomjs://code/sample.js:1 in global code
- :0 in injectJs
- phantomjs://code/bootstrap.js:435
- var casper = require('casper').create();
- casper.start('http://casperjs.org/', function() {
- this.echo(this.getTitle());
- });
- casper.thenOpen('http://phantomjs.org', function() {
- this.echo(this.getTitle());
- });
- casper.run();
- {
- "name": "automationtools",
- "version": "1.0.0",
- "description": "",
- "main": "index.js",
- "scripts": {
- "test": "echo "Error: - no test specified" && exit 1",
- "start": "./node_modules/.bin/casperjs main.js"
- },
- "author": "",
- "license": "ISC",
- "dependencies": {
- "casperjs": "^1.1.3",
- "fs": "0.0.1-security",
- "phantomjs": "^2.1.7"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement