-
Notifications
You must be signed in to change notification settings - Fork 99
Error in lambda_package.js #39
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
Comments
@sajayi I have just had this same issue. |
@janua Thanks for your feedback. Will try it out. |
Getting this problem and really don't know why, even tried @janua advice and didn't seem to help? What version numbers do people have? |
yep. can verify that this solution works. may close the ticket. |
Hi,
Thanks for this lovely plugin.
I have an error with running lambda_package I debugged and found that
grunt-aws-lambda/tasks/lambda_package.js Line 66:
npm.commands.install(install_location, options.package_folder , function () {
returns the follow error
Fatal error: Argument #2: Expected array but got string
When I change it to
npm.commands.install(install_location, [options.package_folder] , function () {
It works but I get the follow warnings
npm WARN ENOENT ENOENT, open '/private/var/folders/4r/9q6tv2_55257mkv4t9l7d4xw0000gn/T/1444468471486.175/package.json'
npm WARN EPACKAGEJSON /var/folders/4r/9q6tv2_55257mkv4t9l7d4xw0000gn/T/1444468471486.175 No description
npm WARN EPACKAGEJSON /var/folders/4r/9q6tv2_55257mkv4t9l7d4xw0000gn/T/1444468471486.175 No repository field.
npm WARN EPACKAGEJSON /var/folders/4r/9q6tv2_55257mkv4t9l7d4xw0000gn/T/1444468471486.175 No README data
npm WARN EPACKAGEJSON /var/folders/4r/9q6tv2_55257mkv4t9l7d4xw0000gn/T/1444468471486.175 No license field.
Any ideas how to fix it? My package.json file is
{
"name": "lambda-local",
"version": "1.0.0",
"description": "SMS Processor",
"main": "index.js",
"private": "true",
"dependencies": {
"aws-sdk": "^2.2.9",
"mysql": "^2.9.0",
"node-uuid": "^1.4.3",
"npm": "^3.1.2",
"request": "^2.64.0"
},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-pack": "0.1.*",
"grunt-aws-lambda": "^0.8.0"
},
"license": "ISC",
"bundledDependencies": [
"aws-sdk",
"mysql",
"node-uuid",
"request"
]
}
The text was updated successfully, but these errors were encountered: