I tried to follow steps listed in the page
https://github.com/graphcool/chromeless/tree/master/serverless
When i add my endpoint, region and run "npm run deploy" , I get so many npm errors such as
/chromeless/serverless/node_modules/aws-sdk/clients/iam.d.ts (1095,32): Cannot find name 'Buffer'. (Lots of it)
/chromeless/serverless/src/utils.ts (10,12): Cannot find name 'process'.
src/version.ts (3,37): Cannot find name 'require'.
npm ERR! Linux 4.4.0-79-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "deploy"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] deploy: serverless deploy
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the [email protected] deploy script 'serverless deploy'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the chromeless-remotechrome-servie package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! serverless deploy
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs chromeless-remotechrome-servie
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls chromeless-remotechrome-servie
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /chromeless/serverless/npm-debug.log
I ran it in both ubuntu and windows. But both didnot help.
I am trying to implement https://chromeless.netlify.com and make it store screenshot in my S3 bucket.
Did you run npm install?
Yes I did npm install, Then added endpoint and region to serverless.yml and then ran npm run deploy
Is there a specific version of nodejs and npm, i should have?
I also notice that, steps at https://github.com/graphcool/chromeless/tree/master/serverless#setup is incomplete. It doesn't say anything about setting up AWS key and secret, Doesn't say where to add S3 bucket. Steps for lambda newbies like me will make this wonderful product reach many people.
@billdesk You need to run npm install in the directory above (chromeless) too, not just in the chromeless/serverless directory.
Alternatively, if you are just using the proxy part/folder you can also run npm install @types/node --save-dev in the chromeless/serverless directory before npm run deploy and that will fix the errors for you.
@billdesk please pull the latest changes in the repository and try npm install again in the serverless directory.
@jracollins thank you for pointing out that @types/node was missing in the Proxy's package.json
Thank you @jracollins . It works now. I am able to deploy now.
I have just one question. How do we generate
to create something like UI demo chromeless.netlify.com.
I downloaded javascript and changed the endpoint API but it doesn't work. I am not sure where to change APIkey.
I am facing a similar issue... any clue guys?
Thanks,
xxxxxxxchromelessserverless>npm run deploy
[email protected] deploy xxxxxxxchromelessserverless
serverless deploy
Serverless: Compiling with Typescript...
Serverless: Using local tsconfig.json
Error --------------------------------------------------
EPERM: operation not permitted, symlink 'xxxxxxxchromelessserverless\node_modules' -> 'xxxxxxxchromelessserverless.build\node_modules'
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Forums: forum.serverless.com
Chat: gitter.im/serverless/serverless
Your Environment Information -----------------------------
OS: win32
Node Version: 6.9.1
Serverless Version: 1.18.1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] deploy: serverless deploy
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! xxxxxxx\AppData\Roaming\npm-cache_logs\2017-08-01T22_19_47_363Z-debug.log
I followed the instructions provided in the thread. No cluck
Fixed by running the command prompt in admin mode. I think you should update your documentation to clearly state that for windows users. I can't wait to give a try...:-)
@simocl we welcome any PRs that improve the documentation! 馃槃
Most helpful comment
I also notice that, steps at https://github.com/graphcool/chromeless/tree/master/serverless#setup is incomplete. It doesn't say anything about setting up AWS key and secret, Doesn't say where to add S3 bucket. Steps for lambda newbies like me will make this wonderful product reach many people.