Code Monkey home page Code Monkey logo

Comments (9)

BenjaminG avatar BenjaminG commented on August 29, 2024

Same here, any way to get the content of the /root/.npm/_logs/*******-debug.log file ?

from website.

darbio avatar darbio commented on August 29, 2024

Same here... except I'm using yarn:

Build step: serverless deploy --stage dev --region us-east-1 --force --org darbio --app tsz-next --debug
Initializing...
Action: "deploy" - Stage: "dev" - Org: "darbio" - App: "tsz-next" - Name: "frontend"
Deploying...
 Error: Failed running "src.hook": "yarn build" due to the following error: Command failed: yarn build
error Command failed with exit code 1.
    at exec (/var/lang/lib/node_modules/serverless/node_modules/@serverless/platform-client/src/instance.js:200:13)
    at ChildProcess.exithandler (child_process.js:301:5)
    at ChildProcess.emit (events.js:198:13)
    at maybeClose (internal/child_process.js:982:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
153s › Serverless › Failed running "src.hook": "yarn build" due to the following error: Command failed: yarn build
error Command failed with exit code 1.
 
  Documentation: https://github.com/serverless/components 
  Support: https://app.serverless.com/support 
  Slack: https://www.serverless.com/slack/ 
Build step failed: serverless deploy --stage dev --region us-east-1 --force --org darbio --app tsz-next --debug

Works fine locally.

from website.

darbio avatar darbio commented on August 29, 2024

For me, the problem was that I had some warnings when I built the project in a CI environment (when CI=true). When CI is set, react-scripts build will treat warnings as errors and the build will fail.

You can set your build script to CI= react-scripts build if you want to trick the build scripts.

from website.

BenjaminG avatar BenjaminG commented on August 29, 2024

@darbio thanks for your suggestion, I fixed all the warning I had coming from Eslint so that it can build even with CI=true.

But I still have the same issue by pushing my code on Github.
Locally this works: CI=true serverless deploy --stage staging --force --org b***** --app fmg --debug

from website.

josoroma-zz avatar josoroma-zz commented on August 29, 2024

Thank you!

Buut no luck from my side:

image

CI=true serverless deploy --aws-profile xyz --stage dev --force --org abc--app abc-app-website --debu

image

from website.

PGuimarais avatar PGuimarais commented on August 29, 2024

also running into this issue, can't seem to find a work around other than manually deploying

from website.

andrescabana86 avatar andrescabana86 commented on August 29, 2024

Me too. Could you please @PGuimarais tell me how to deploy manually b/c I'm new on this

from website.

darbio avatar darbio commented on August 29, 2024

Me too. Could you please @PGuimarais tell me how to deploy manually b/c I'm new on this

Just run the deploy command from terminal.

from website.

vtr-rivia avatar vtr-rivia commented on August 29, 2024

Up. Same problem here
npm ERR! /root/.npm/_logs/2021-09-24T14_13_03_998Z-debug.log at /var/lang/lib/node_modules/serverless/node_modules/@serverless/platform-client/src/instance.js:200:13 at ChildProcess.exithandler (child_process.js:315:5) at ChildProcess.emit (events.js:314:20) at maybeClose (internal/child_process.js:1022:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) 20s › Serverless › Failed running "src.hook": "npm run build" due to the following error: Command failed: npm run build

from website.

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.