Skip to content

Function local run doesn't work #11

Description

@volodymyr-f

Hi,
I've done simple steps to run this project but it didn't work for me.

So, I followed steps:

  1. Clone project;
  2. npm install
  3. npm run setup and modified env file
  4. npm run start - local run of existing sample script

And I got following exception:

node-casperjs-aws-lambda npm run start

node-casperjs-aws-lambda@1.0.2 start /Users/..../node-casperjs-aws-lambda
node-lambda run

Running index.handler
==================================================
event { key: 'value', key2: 'value2', other_key: 'other_value' }
==================================================
Executing file named:  sample-script.js with parameters: {"email":"hello@hello.com","password":"12345"}
=123234+===========
PATH /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/ /....src/node-casperjs-aws-lambda/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin
Calling casperJS:  /Users/...../node-casperjs-aws-lambda/node_modules/casperjs/bin/casperjs [ '/Users/..../node-casperjs-aws-lambda/src/scripts/sample-script.js',
  '--email=hello@hello.com',
  '--password=12345' ] { PHANTOMJS_EXECUTABLE: '/Users/..../node-casperjs-aws-lambda/node_modules/phantomjs/bin/phantomjs' }
child process exited with code 0
==================================================
Stopping index.handler

If I run (not using node_js child_process but from cmd): /Users/...../node-casperjs-aws-lambda/node_modules/casperjs/bin/casperjs src/scripts/sample-script.js
Everything works fine.

My env is:
node --version
v7.8.0
OSX: Sierra 10.12.6

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions