Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function local run doesn't work #11

Open
volodymyr-f opened this issue Sep 1, 2017 · 0 comments
Open

Function local run doesn't work #11

volodymyr-f opened this issue Sep 1, 2017 · 0 comments

Comments

@volodymyr-f
Copy link

volodymyr-f commented Sep 1, 2017

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

[email protected] 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":"[email protected]","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 protected]',
  '--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

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

No branches or pull requests

2 participants