amazon-archives / aws-serverless-auth-reference-app

Serverless reference app and backend API, showcasing authentication and authorization patterns using Amazon Cognito, Amazon API Gateway, AWS Lambda, and AWS IAM.
Other
752 stars 194 forks source link

gulp deploy throwing below error. #23

Closed msarm closed 7 years ago

msarm commented 7 years ago

module.js:472 throw err; ^

Error: Cannot find module '/Users/desktop/aws-serverless-auth-reference-app/api/data' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Function. (/Users/desktop/aws-serverless-auth-reference-app/api/node_modules/rfr/lib/rfr.js:160:12) at Object. (/Users/desktop/aws-serverless-auth-reference-app/api/lambda/locations.js:3:12) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12)

justonian commented 7 years ago

You first need to run npm install 3 different places to not encounter such an issue. These include /app, /api, and /api/data.

lepirlouit commented 6 years ago

there's no /api/data folder ...

justonian commented 6 years ago

Sorry...the third place to run gulp deploy is on /api/lambda in addition to /app and /api. The data.js file is in the lambda directory.