{"action":"created","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/446","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/446/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/446/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/446/events","html_url":"https://github.com/serverless/serverless/issues/446","id":124507065,"number":446,"title":"match the lambda execution environment","user":{"login":"alexklibisz","id":8015228,"avatar_url":"https://avatars.githubusercontent.com/u/8015228?v=3","gravatar_id":"","url":"https://api.github.com/users/alexklibisz","html_url":"https://github.com/alexklibisz","followers_url":"https://api.github.com/users/alexklibisz/followers","following_url":"https://api.github.com/users/alexklibisz/following{/other_user}","gists_url":"https://api.github.com/users/alexklibisz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexklibisz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexklibisz/subscriptions","organizations_url":"https://api.github.com/users/alexklibisz/orgs","repos_url":"https://api.github.com/users/alexklibisz/repos","events_url":"https://api.github.com/users/alexklibisz/events{/privacy}","received_events_url":"https://api.github.com/users/alexklibisz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-12-31T21:30:45Z","updated_at":"2016-04-06T12:06:30Z","closed_at":null,"body":"I've had several instances over the past week of using lambda where a function will run via ```sls function run``` without any errors locally, but then the function fails due to syntax error when deployed.\r\n\r\nI looked up the lambda execution version for node, and it's currently 0.10.36 (source: http://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html).\r\n\r\nHowever, when I used nvm to set my local node version to match (nvm install v0.10.36), I can't even run sls:\r\n\r\n```\r\n$ sls\r\n\r\n/usr/local/lib/node_modules/serverless/bin/serverless:5\r\nlet argv = require('minimist')(process.argv.slice(2));\r\n^^^\r\nSyntaxError: Unexpected strict mode reserved word\r\n    at Module._compile (module.js:439:25)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Function.Module.runMain (module.js:497:10)\r\n    at startup (node.js:119:16)\r\n    at node.js:929:3\r\n```\r\n\r\nIs there currently any way to either a) patch AWS to use the node version that we are running/testing on locally or b) force sls to use the same node version locally as AWS lambda is using?"},"comment":{"url":"https://api.github.com/repos/serverless/serverless/issues/comments/206341824","html_url":"https://github.com/serverless/serverless/issues/446#issuecomment-206341824","issue_url":"https://api.github.com/repos/serverless/serverless/issues/446","id":206341824,"user":{"login":"lpanebr","id":129185,"avatar_url":"https://avatars.githubusercontent.com/u/129185?v=3","gravatar_id":"","url":"https://api.github.com/users/lpanebr","html_url":"https://github.com/lpanebr","followers_url":"https://api.github.com/users/lpanebr/followers","following_url":"https://api.github.com/users/lpanebr/following{/other_user}","gists_url":"https://api.github.com/users/lpanebr/gists{/gist_id}","starred_url":"https://api.github.com/users/lpanebr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpanebr/subscriptions","organizations_url":"https://api.github.com/users/lpanebr/orgs","repos_url":"https://api.github.com/users/lpanebr/repos","events_url":"https://api.github.com/users/lpanebr/events{/privacy}","received_events_url":"https://api.github.com/users/lpanebr/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T12:06:30Z","updated_at":"2016-04-06T12:06:30Z","body":"It seems a similar approach [using docker containers to run lambda and dinamodb locally](https://aws.amazon.com/blogs/compute/cloudmicro-for-aws-speeding-up-serverless-development-at-the-coca-cola-company/) is in development. The downside is it's for python lambda..."}}