Git Product home page Git Product logo

Comments (7)

toshke avatar toshke commented on June 26, 2024

@Rendanic there should be no need to execute postinstall on your own, it is part of npm install process itself. Also, you may want to use SAM as deployment mechanism, more elegant than serverless IMHO - https://github.com/base2Services/shelvery-aws-backups/blob/develop/deploy-sam-template.sh

from shelvery-aws-backups.

Rendanic avatar Rendanic commented on June 26, 2024

I tried SAM and it worked after some modifications to the script.
The example needs some tweaks to work on my side. I'll create a PR to make it more flexible for other users.
Hopefulle the doc for serverless will be modified, because it doesn't work at the moment.

from shelvery-aws-backups.

toshke avatar toshke commented on June 26, 2024

@Rendanic can you point us to exact point that failed with npm. I tried and used doco with success yesterday, I'm unclear on this line -

postinstall /usr/local/lib/node_modules/serverless/

as I couldn't find it in the doco

from shelvery-aws-backups.

Rendanic avatar Rendanic commented on June 26, 2024
docker run --rm -it -v $HOME/.aws:/root/.aws -w /src node:latest bash
git clone https://github.com/base2services/shelvery && cd shelvery
npm install -g serverless
root@1530a29db151:/src/shelvery# node postinstall

I get the following error from 'node postinstall'

internal/modules/cjs/loader.js:1017
throw err;
^

Error: Cannot find module '/src/shelvery/postinstall'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1014:15)
at Function.Module._load (internal/modules/cjs/loader.js:884:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

from shelvery-aws-backups.

toshke avatar toshke commented on June 26, 2024

from shelvery-aws-backups.

Rendanic avatar Rendanic commented on June 26, 2024

Thanks for the fast reply.
That was my first serverless deployment and I tried it from the documentation.
Hint: Change the commands in command or command

from shelvery-aws-backups.

toshke avatar toshke commented on June 26, 2024

Yeah, was replying from my phone via email, otherwise I would put command

from shelvery-aws-backups.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.