GithubHelp home page GithubHelp logo

Comments (5)

luiscarbonell avatar luiscarbonell commented on May 27, 2024

Resolved by: 407d924

from carrot.

luiscarbonell avatar luiscarbonell commented on May 27, 2024

Ran into another issue with the build script.

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle @liquid-carrot/[email protected]~prebuild: @liquid-carrot/[email protected]
6 info lifecycle @liquid-carrot/[email protected]~build: @liquid-carrot/[email protected]
7 verbose lifecycle @liquid-carrot/[email protected]~build: unsafe-perm in lifecycle true
8 verbose lifecycle @liquid-carrot/[email protected]~build: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/carrot/workspace/lc-app/carrot/node_modules/.bin:/home/carrot/anaconda3/bin:/home/carrot/anaconda3/bin:/home/carrot/bin:/home/carrot/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle @liquid-carrot/[email protected]~build: CWD: /home/carrot/workspace/lc-app/carrot
10 silly lifecycle @liquid-carrot/[email protected]~build: Args: [ '-c',
10 silly lifecycle   'jsdoc -r -c jsdoc.json && git add . && git stash && git checkout gh-pages && git pull && git merge --squash --strategy-option=theirs stash && git stash drop && git commit -m \'Auto-build\' && git push && git checkout master' ]
11 silly lifecycle @liquid-carrot/[email protected]~build: Returned: code: 1  signal: null
12 info lifecycle @liquid-carrot/[email protected]~build: Failed to exec build script
13 verbose stack Error: @liquid-carrot/[email protected] build: `jsdoc -r -c jsdoc.json && git add . && git stash && git checkout gh-pages && git pull && git merge --squash --strategy-option=theirs stash && git stash drop && git commit -m 'Auto-build' && git push && git checkout master`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at EventEmitter.emit (events.js:214:7)
13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at ChildProcess.emit (events.js:214:7)
13 verbose stack     at maybeClose (internal/child_process.js:915:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid @liquid-carrot/[email protected]
15 verbose cwd /home/carrot/workspace/lc-app/carrot
16 verbose Linux 4.4.0-143-generic
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
18 verbose node v8.15.1
19 verbose npm  v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error @liquid-carrot/[email protected] build: `jsdoc -r -c jsdoc.json && git add . && git stash && git checkout gh-pages && git pull && git merge --squash --strategy-option=theirs stash && git stash drop && git commit -m 'Auto-build' && git push && git checkout master`
22 error Exit status 1
23 error Failed at the @liquid-carrot/[email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

from carrot.

luiscarbonell avatar luiscarbonell commented on May 27, 2024

The bug seems to come from the following script:
node_modules/.bin/jsdoc -r -c jsdoc.json

When I run it by hand to debug that is the only script that gives any issues.

from carrot.

christianechevarria avatar christianechevarria commented on May 27, 2024

When I run it by hand to debug that is the only script that gives any issues.

Can you elaborate on this?

from carrot.

luiscarbonell avatar luiscarbonell commented on May 27, 2024

When I run:

npm run build

I get the following stack trace:

#20 (comment)

However, when split npm run build by && and copy/paste the commands individually into the console they all seem to work - except node_modules/.bin/jsdoc -r -c jsdoc.json.

  • node_modules/.bin/jsdoc -r -c jsdoc.json <-- BUG
  • git add .
  • git stash
  • git checkout gh-pages
  • git pull
  • git merge --squash --strategy-option=theirs stash
  • git stash drop
  • git commit -m 'Auto-build'
  • git push
  • git checkout master

from carrot.

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.