[GH-ISSUE #1993] "docker-compose up" failed on my arm64 m1 mac #644

Closed
opened 2026-03-16 16:29:54 +03:00 by kerem · 2 comments
Owner

Originally created by @mafei007even on GitHub (Dec 3, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1993

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

i clone this repo with git.
run docker-compose up

error message:

Building web
[+] Building 172.6s (12/14)
 => [internal] load build definition from Dockerfile                                                                                                                                                  0.0s
 => => transferring dockerfile: 327B                                                                                                                                                                  0.0s
 => [internal] load .dockerignore                                                                                                                                                                     0.0s
 => => transferring context: 35B                                                                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/node:lts-alpine                                                                                                                                    2.6s
 => [ 1/10] FROM docker.io/library/node:lts-alpine@sha256:a9b9cb880fa429b0bea899cd3b1bc081ab7277cc97e6d2dcd84bd9753b2027e1                                                                            0.0s
 => [internal] load build context                                                                                                                                                                     0.1s
 => => transferring context: 49.24kB                                                                                                                                                                  0.0s
 => CACHED [ 2/10] RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories                                                                                                   0.0s
 => CACHED [ 3/10] RUN apk add --no-cache --virtual .gyp   python3   make   g++                                                                                                                       0.0s
 => CACHED [ 4/10] WORKDIR /app                                                                                                                                                                       0.0s
 => CACHED [ 5/10] ADD . /app/                                                                                                                                                                        0.0s
 => CACHED [ 6/10] COPY . .                                                                                                                                                                           0.0s
 => CACHED [ 7/10] RUN npm install -g pnpm                                                                                                                                                            0.0s
 => ERROR [ 8/10] RUN pnpm i --unsafe-perm=true                                                                                                                                                     169.8s
------
 > [ 8/10] RUN pnpm i --unsafe-perm=true:
#12 0.478 Scope: all 5 workspace projects
#12 0.587 Lockfile is up-to-date, resolution step is skipped
#12 0.676 Progress: resolved 1, reused 0, downloaded 0, added 0
#12 0.964 Packages: +2204
#12 0.964 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#12 1.679 Progress: resolved 2204, reused 0, downloaded 0, added 0
#12 1.902 Packages are hard linked from the content-addressable store to the virtual store.
#12 1.902   Content-addressable store is at: /root/.pnpm-store/v3
#12 1.902   Virtual store is at:             node_modules/.pnpm
#12 2.680 Progress: resolved 2204, reused 0, downloaded 30, added 30

.....

#12 145.3 Progress: resolved 2204, reused 0, downloaded 2204, added 2203
#12 146.2 .../deasync@0.1.23/node_modules/deasync install$ node ./build.js
#12 146.2 .../core-js@3.6.5/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
#12 146.2 .../core-js@2.6.12/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
#12 146.2 .../core-js@3.19.1/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
#12 146.2 .../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}"
#12 146.2 .../core-js@2.6.12/node_modules/core-js postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
#12 146.2 .../core-js@2.6.12/node_modules/core-js postinstall: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
#12 146.2 .../core-js@2.6.12/node_modules/core-js postinstall: > https://opencollective.com/core-js
#12 146.2 .../core-js@2.6.12/node_modules/core-js postinstall: > https://www.patreon.com/zloirock
#12 146.2 .../core-js@2.6.12/node_modules/core-js postinstall: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
#12 146.2 .../core-js@3.6.5/node_modules/core-js postinstall: Done
#12 146.2 .../core-js@2.6.12/node_modules/core-js postinstall: Done
#12 146.2 .../esbuild@0.12.29/node_modules/esbuild postinstall$ node install.js
#12 146.3 .../node_modules/core-js-pure postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
#12 146.3 .../node_modules/core-js-pure postinstall: The project needs your help! Please consider supporting of core-js:
#12 146.3 .../node_modules/core-js-pure postinstall: > https://opencollective.com/core-js
#12 146.3 .../node_modules/core-js-pure postinstall: > https://patreon.com/zloirock
#12 146.3 .../node_modules/core-js-pure postinstall: > https://paypal.me/zloirock
#12 146.3 .../node_modules/core-js-pure postinstall: > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz
#12 146.3 .../node_modules/core-js-pure postinstall: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
#12 146.3 .../node_modules/core-js-pure postinstall: Done
#12 146.3 .../core-js@3.19.1/node_modules/core-js postinstall: Done
#12 146.3 .../node_modules/protobufjs postinstall$ node scripts/postinstall
#12 146.3 Progress: resolved 2204, reused 0, downloaded 2204, added 2204, done
#12 146.3 .../node_modules/protobufjs postinstall: Done
#12 146.3 .../deasync@0.1.23/node_modules/deasync install: gyp info it worked if it ends with ok
#12 146.3 .../deasync@0.1.23/node_modules/deasync install: gyp info using node-gyp@8.4.1
#12 146.3 .../deasync@0.1.23/node_modules/deasync install: gyp info using node@16.13.1 | linux | arm64
#12 146.4 .../deasync@0.1.23/node_modules/deasync install: gyp info find Python using Python version 3.9.5 found at "/usr/bin/python3"
#12 146.5 .../deasync@0.1.23/node_modules/deasync install: gyp http GET https://nodejs.org/download/release/v16.13.1/node-v16.13.1-headers.tar.gz
#12 147.1 .../deasync@0.1.23/node_modules/deasync install: gyp http 200 https://nodejs.org/download/release/v16.13.1/node-v16.13.1-headers.tar.gz
#12 148.1 .../deasync@0.1.23/node_modules/deasync install: gyp http GET https://nodejs.org/download/release/v16.13.1/SHASUMS256.txt
#12 148.3 .../deasync@0.1.23/node_modules/deasync install: gyp http 200 https://nodejs.org/download/release/v16.13.1/SHASUMS256.txt
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn /usr/bin/python3
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args [
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   'binding.gyp',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '-f',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   'make',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '-I',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '/app/node_modules/.pnpm/deasync@0.1.23/node_modules/deasync/build/config.gypi',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '-I',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '-I',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '/root/.cache/node-gyp/16.13.1/include/node/common.gypi',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '-Dlibrary=shared_library',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '-Dvisibility=default',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/16.13.1',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/16.13.1/<(target_arch)/node.lib',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '-Dmodule_root_dir=/app/node_modules/.pnpm/deasync@0.1.23/node_modules/deasync',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '-Dnode_engine=v8',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '--depth=.',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '--no-parallel',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '--generator-output',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   'build',
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args   '-Goutput_dir=.'
#12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args ]
#12 148.5 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn make
#12 148.5 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
#12 148.5 .../deasync@0.1.23/node_modules/deasync install: make: Entering directory '/app/node_modules/.pnpm/deasync@0.1.23/node_modules/deasync/build'
#12 148.5 .../deasync@0.1.23/node_modules/deasync install:   CXX(target) Release/obj.target/deasync/src/deasync.o
#12 149.2 .../deasync@0.1.23/node_modules/deasync install:   SOLINK_MODULE(target) Release/obj.target/deasync.node
#12 149.2 .../deasync@0.1.23/node_modules/deasync install:   COPY Release/deasync.node
#12 149.2 .../deasync@0.1.23/node_modules/deasync install: make: Leaving directory '/app/node_modules/.pnpm/deasync@0.1.23/node_modules/deasync/build'
#12 149.2 .../deasync@0.1.23/node_modules/deasync install: gyp info ok
#12 149.2 .../deasync@0.1.23/node_modules/deasync install: Installed in `/app/node_modules/.pnpm/deasync@0.1.23/node_modules/deasync/bin/linux-arm64-node-16/deasync.node`
#12 149.2 .../deasync@0.1.23/node_modules/deasync install: Done
#12 150.9 .../esbuild@0.12.29/node_modules/esbuild postinstall: Done
#12 151.0 .../esbuild@0.13.15/node_modules/esbuild postinstall$ node install.js
#12 151.0 .../esbuild@0.13.15/node_modules/esbuild postinstall: Done
#12 151.0 .../node_modules/nuxt postinstall$ opencollective || exit 0
#12 152.3 .../node_modules/nuxt postinstall:
#12 152.3 .../node_modules/nuxt postinstall:                                      :-:
#12 152.3 .../node_modules/nuxt postinstall:                                    .==-+:
#12 152.3 .../node_modules/nuxt postinstall:                                   .==. :+- .-=-
#12 152.3 .../node_modules/nuxt postinstall:                                  .==.   :==++-+=.
#12 152.3 .../node_modules/nuxt postinstall:                                 :==.     -**: :+=.
#12 152.3 .../node_modules/nuxt postinstall:                                :+-      :*+++. .++.
#12 152.3 .../node_modules/nuxt postinstall:                               :+-      -*= .++: .=+.
#12 152.3 .../node_modules/nuxt postinstall:                              -+:      =*-   .+*: .=+:
#12 152.3 .../node_modules/nuxt postinstall:                             -+:     .=*-     .=*-  =+:
#12 152.3 .../node_modules/nuxt postinstall:                           .==:     .+*:        -*-  -+-
#12 152.3 .../node_modules/nuxt postinstall:                          .=+:.....:+*-.........:=*=..=*-
#12 152.3 .../node_modules/nuxt postinstall:                          .-=------=++============++====:
#12 152.3 .../node_modules/nuxt postinstall:
#12 152.3 .../node_modules/nuxt postinstall:                           Thanks for installing nuxtjs
#12 152.3 .../node_modules/nuxt postinstall:                  Please consider donating to our open collective
#12 152.3 .../node_modules/nuxt postinstall:                         to help us maintain this package.
#12 152.3 .../node_modules/nuxt postinstall:
#12 152.3 .../node_modules/nuxt postinstall:                             Number of contributors: 0
#12 152.3 .../node_modules/nuxt postinstall:                               Number of backers: 451
#12 152.4 .../node_modules/nuxt postinstall:                               Annual budget: $74,756
#12 152.4 .../node_modules/nuxt postinstall:                              Current balance: $29,078
#12 152.4 .../node_modules/nuxt postinstall:
#12 152.4 .../node_modules/nuxt postinstall:                  Donate: https://opencollective.com/nuxtjs/donate
#12 152.4 .../node_modules/nuxt postinstall:
#12 152.4 .../node_modules/nuxt postinstall: Done
#12 152.6
#12 152.6 dependencies:
#12 152.6 + husky 7.0.4
#12 152.6 + lint-staged 12.1.2
#12 152.6
#12 152.6 devDependencies:
#12 152.6 + @commitlint/cli 15.0.0
#12 152.6 + @commitlint/config-conventional 15.0.0
#12 152.6
#12 152.6 packages/codemirror-lang-graphql prepare$ rollup -c
#12 152.6 packages/hoppscotch-data prepare$ tsup src --dts
#12 152.6 packages/hoppscotch-js-sandbox postinstall$ pnpm run build
#12 152.6 . prepare$ husky install
#12 152.7 . prepare: Done
#12 152.9 packages/hoppscotch-data prepare: CLI Building entry: src/index.ts, src/graphql/index.ts, src/rest/HoppRESTAuth.ts, src/rest/content-types.ts, src/rest/index.ts
#12 152.9 packages/hoppscotch-data prepare: CLI Using tsconfig: tsconfig.json
#12 152.9 packages/hoppscotch-data prepare: CLI tsup v5.9.0
#12 152.9 packages/hoppscotch-data prepare: CLI Using tsup config: /app/packages/hoppscotch-data/tsup.config.ts
#12 152.9 packages/hoppscotch-data prepare: CLI Target: node12
#12 152.9 packages/hoppscotch-data prepare: CLI Cleaning output folder
#12 152.9 packages/hoppscotch-data prepare: CJS Build start
#12 152.9 packages/hoppscotch-data prepare: CJS Build success in 12ms
#12 153.0 packages/hoppscotch-js-sandbox postinstall: > @hoppscotch/js-sandbox@1.0.0 build /app/packages/hoppscotch-js-sandbox
#12 153.0 packages/hoppscotch-js-sandbox postinstall: > npx tsc
#12 153.2 packages/hoppscotch-data prepare: DTS Build start
#12 153.4 packages/codemirror-lang-graphql prepare: src/index.js → dist/index.cjs, ./dist...
#12 156.2 packages/hoppscotch-data prepare: DTS Build success in 2971ms
#12 156.4 packages/hoppscotch-data prepare: Done
#12 157.6 packages/codemirror-lang-graphql prepare: created dist/index.cjs, ./dist in 4.1s
#12 157.7 packages/codemirror-lang-graphql prepare: Done
#12 158.4 packages/hoppscotch-js-sandbox postinstall: Done
#12 158.4 packages/hoppscotch-app postinstall$ pnpm run gql-codegen
#12 158.7 packages/hoppscotch-app postinstall: > hoppscotch-app@2.1.0 gql-codegen /app/packages/hoppscotch-app
#12 158.7 packages/hoppscotch-app postinstall: > graphql-codegen --config gql-codegen.yml
#12 159.6 packages/hoppscotch-app postinstall: [16:03:36] Parse configuration [started]
#12 159.6 packages/hoppscotch-app postinstall: [16:03:36] Parse configuration [completed]
#12 159.6 packages/hoppscotch-app postinstall: [16:03:36] Generate outputs [started]
#12 159.6 packages/hoppscotch-app postinstall: [16:03:36] Generate helpers/backend/graphql.ts [started]
#12 159.6 packages/hoppscotch-app postinstall: [16:03:36] Generate helpers/backend/backend-schema.json [started]
#12 159.6 packages/hoppscotch-app postinstall: [16:03:36] Load GraphQL schemas [started]
#12 159.6 packages/hoppscotch-app postinstall: [16:03:36] Load GraphQL schemas [started]
#12 159.6 packages/hoppscotch-app postinstall: (node:265) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
#12 159.6 packages/hoppscotch-app postinstall: (Use `node --trace-warnings ...` to show where the warning was created)
#12 169.7 packages/hoppscotch-app postinstall: [16:03:46] Load GraphQL schemas [failed]
#12 169.7 packages/hoppscotch-app postinstall: [16:03:46] → Failed to load schema
#12 169.7 packages/hoppscotch-app postinstall: [16:03:46] Generate helpers/backend/graphql.ts [failed]
#12 169.7 packages/hoppscotch-app postinstall: [16:03:46] → Failed to load schema
#12 169.7 packages/hoppscotch-app postinstall: [16:03:46] Load GraphQL schemas [failed]
#12 169.7 packages/hoppscotch-app postinstall: [16:03:46] → Failed to load schema
#12 169.7 packages/hoppscotch-app postinstall: [16:03:46] Generate helpers/backend/backend-schema.json [failed]
#12 169.7 packages/hoppscotch-app postinstall: [16:03:46] → Failed to load schema
#12 169.7 packages/hoppscotch-app postinstall: [16:03:46] Generate outputs [failed]
#12 169.7 packages/hoppscotch-app postinstall: Something went wrong
#12 169.7 packages/hoppscotch-app postinstall:  ELIFECYCLE  Command failed with exit code 1.
#12 169.7 packages/hoppscotch-app postinstall: Failed
#12 169.7  ELIFECYCLE  Command failed with exit code 1.
------
executor failed running [/bin/sh -c pnpm i --unsafe-perm=true]: exit code: 1
ERROR: Service 'web' failed to build : Build failed

Steps to reproduce

i clone this repo with git.
run docker-compose up
See error

i don't know what environment under the options. i did't change anything.

Docker images downloaded through this command docker run --name hoppscotch -p 3000:3000 hoppscotch/hoppscotch can run, but it is based on the AMD64 architecture, not arm64, performance is poor

If I run docker-compose up on an M1 MAC, Will it compile for ARM64 architecture?

Environment

Production

Version

Local

Originally created by @mafei007even on GitHub (Dec 3, 2021). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1993 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior i clone this repo with git. run `docker-compose up` error message: ``` Building web [+] Building 172.6s (12/14) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 327B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 35B 0.0s => [internal] load metadata for docker.io/library/node:lts-alpine 2.6s => [ 1/10] FROM docker.io/library/node:lts-alpine@sha256:a9b9cb880fa429b0bea899cd3b1bc081ab7277cc97e6d2dcd84bd9753b2027e1 0.0s => [internal] load build context 0.1s => => transferring context: 49.24kB 0.0s => CACHED [ 2/10] RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories 0.0s => CACHED [ 3/10] RUN apk add --no-cache --virtual .gyp python3 make g++ 0.0s => CACHED [ 4/10] WORKDIR /app 0.0s => CACHED [ 5/10] ADD . /app/ 0.0s => CACHED [ 6/10] COPY . . 0.0s => CACHED [ 7/10] RUN npm install -g pnpm 0.0s => ERROR [ 8/10] RUN pnpm i --unsafe-perm=true 169.8s ------ > [ 8/10] RUN pnpm i --unsafe-perm=true: #12 0.478 Scope: all 5 workspace projects #12 0.587 Lockfile is up-to-date, resolution step is skipped #12 0.676 Progress: resolved 1, reused 0, downloaded 0, added 0 #12 0.964 Packages: +2204 #12 0.964 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #12 1.679 Progress: resolved 2204, reused 0, downloaded 0, added 0 #12 1.902 Packages are hard linked from the content-addressable store to the virtual store. #12 1.902 Content-addressable store is at: /root/.pnpm-store/v3 #12 1.902 Virtual store is at: node_modules/.pnpm #12 2.680 Progress: resolved 2204, reused 0, downloaded 30, added 30 ..... #12 145.3 Progress: resolved 2204, reused 0, downloaded 2204, added 2203 #12 146.2 .../deasync@0.1.23/node_modules/deasync install$ node ./build.js #12 146.2 .../core-js@3.6.5/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}" #12 146.2 .../core-js@2.6.12/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}" #12 146.2 .../core-js@3.19.1/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}" #12 146.2 .../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}" #12 146.2 .../core-js@2.6.12/node_modules/core-js postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! #12 146.2 .../core-js@2.6.12/node_modules/core-js postinstall: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: #12 146.2 .../core-js@2.6.12/node_modules/core-js postinstall: > https://opencollective.com/core-js #12 146.2 .../core-js@2.6.12/node_modules/core-js postinstall: > https://www.patreon.com/zloirock #12 146.2 .../core-js@2.6.12/node_modules/core-js postinstall: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) #12 146.2 .../core-js@3.6.5/node_modules/core-js postinstall: Done #12 146.2 .../core-js@2.6.12/node_modules/core-js postinstall: Done #12 146.2 .../esbuild@0.12.29/node_modules/esbuild postinstall$ node install.js #12 146.3 .../node_modules/core-js-pure postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! #12 146.3 .../node_modules/core-js-pure postinstall: The project needs your help! Please consider supporting of core-js: #12 146.3 .../node_modules/core-js-pure postinstall: > https://opencollective.com/core-js #12 146.3 .../node_modules/core-js-pure postinstall: > https://patreon.com/zloirock #12 146.3 .../node_modules/core-js-pure postinstall: > https://paypal.me/zloirock #12 146.3 .../node_modules/core-js-pure postinstall: > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz #12 146.3 .../node_modules/core-js-pure postinstall: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) #12 146.3 .../node_modules/core-js-pure postinstall: Done #12 146.3 .../core-js@3.19.1/node_modules/core-js postinstall: Done #12 146.3 .../node_modules/protobufjs postinstall$ node scripts/postinstall #12 146.3 Progress: resolved 2204, reused 0, downloaded 2204, added 2204, done #12 146.3 .../node_modules/protobufjs postinstall: Done #12 146.3 .../deasync@0.1.23/node_modules/deasync install: gyp info it worked if it ends with ok #12 146.3 .../deasync@0.1.23/node_modules/deasync install: gyp info using node-gyp@8.4.1 #12 146.3 .../deasync@0.1.23/node_modules/deasync install: gyp info using node@16.13.1 | linux | arm64 #12 146.4 .../deasync@0.1.23/node_modules/deasync install: gyp info find Python using Python version 3.9.5 found at "/usr/bin/python3" #12 146.5 .../deasync@0.1.23/node_modules/deasync install: gyp http GET https://nodejs.org/download/release/v16.13.1/node-v16.13.1-headers.tar.gz #12 147.1 .../deasync@0.1.23/node_modules/deasync install: gyp http 200 https://nodejs.org/download/release/v16.13.1/node-v16.13.1-headers.tar.gz #12 148.1 .../deasync@0.1.23/node_modules/deasync install: gyp http GET https://nodejs.org/download/release/v16.13.1/SHASUMS256.txt #12 148.3 .../deasync@0.1.23/node_modules/deasync install: gyp http 200 https://nodejs.org/download/release/v16.13.1/SHASUMS256.txt #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn /usr/bin/python3 #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args [ #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args 'binding.gyp', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '-f', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args 'make', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '-I', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '/app/node_modules/.pnpm/deasync@0.1.23/node_modules/deasync/build/config.gypi', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '-I', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '-I', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '/root/.cache/node-gyp/16.13.1/include/node/common.gypi', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '-Dlibrary=shared_library', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '-Dvisibility=default', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/16.13.1', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/16.13.1/<(target_arch)/node.lib', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '-Dmodule_root_dir=/app/node_modules/.pnpm/deasync@0.1.23/node_modules/deasync', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '-Dnode_engine=v8', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '--depth=.', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '--no-parallel', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '--generator-output', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args 'build', #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args '-Goutput_dir=.' #12 148.4 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args ] #12 148.5 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn make #12 148.5 .../deasync@0.1.23/node_modules/deasync install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] #12 148.5 .../deasync@0.1.23/node_modules/deasync install: make: Entering directory '/app/node_modules/.pnpm/deasync@0.1.23/node_modules/deasync/build' #12 148.5 .../deasync@0.1.23/node_modules/deasync install: CXX(target) Release/obj.target/deasync/src/deasync.o #12 149.2 .../deasync@0.1.23/node_modules/deasync install: SOLINK_MODULE(target) Release/obj.target/deasync.node #12 149.2 .../deasync@0.1.23/node_modules/deasync install: COPY Release/deasync.node #12 149.2 .../deasync@0.1.23/node_modules/deasync install: make: Leaving directory '/app/node_modules/.pnpm/deasync@0.1.23/node_modules/deasync/build' #12 149.2 .../deasync@0.1.23/node_modules/deasync install: gyp info ok #12 149.2 .../deasync@0.1.23/node_modules/deasync install: Installed in `/app/node_modules/.pnpm/deasync@0.1.23/node_modules/deasync/bin/linux-arm64-node-16/deasync.node` #12 149.2 .../deasync@0.1.23/node_modules/deasync install: Done #12 150.9 .../esbuild@0.12.29/node_modules/esbuild postinstall: Done #12 151.0 .../esbuild@0.13.15/node_modules/esbuild postinstall$ node install.js #12 151.0 .../esbuild@0.13.15/node_modules/esbuild postinstall: Done #12 151.0 .../node_modules/nuxt postinstall$ opencollective || exit 0 #12 152.3 .../node_modules/nuxt postinstall: #12 152.3 .../node_modules/nuxt postinstall: :-: #12 152.3 .../node_modules/nuxt postinstall: .==-+: #12 152.3 .../node_modules/nuxt postinstall: .==. :+- .-=- #12 152.3 .../node_modules/nuxt postinstall: .==. :==++-+=. #12 152.3 .../node_modules/nuxt postinstall: :==. -**: :+=. #12 152.3 .../node_modules/nuxt postinstall: :+- :*+++. .++. #12 152.3 .../node_modules/nuxt postinstall: :+- -*= .++: .=+. #12 152.3 .../node_modules/nuxt postinstall: -+: =*- .+*: .=+: #12 152.3 .../node_modules/nuxt postinstall: -+: .=*- .=*- =+: #12 152.3 .../node_modules/nuxt postinstall: .==: .+*: -*- -+- #12 152.3 .../node_modules/nuxt postinstall: .=+:.....:+*-.........:=*=..=*- #12 152.3 .../node_modules/nuxt postinstall: .-=------=++============++====: #12 152.3 .../node_modules/nuxt postinstall: #12 152.3 .../node_modules/nuxt postinstall: Thanks for installing nuxtjs #12 152.3 .../node_modules/nuxt postinstall: Please consider donating to our open collective #12 152.3 .../node_modules/nuxt postinstall: to help us maintain this package. #12 152.3 .../node_modules/nuxt postinstall: #12 152.3 .../node_modules/nuxt postinstall: Number of contributors: 0 #12 152.3 .../node_modules/nuxt postinstall: Number of backers: 451 #12 152.4 .../node_modules/nuxt postinstall: Annual budget: $74,756 #12 152.4 .../node_modules/nuxt postinstall: Current balance: $29,078 #12 152.4 .../node_modules/nuxt postinstall: #12 152.4 .../node_modules/nuxt postinstall: Donate: https://opencollective.com/nuxtjs/donate #12 152.4 .../node_modules/nuxt postinstall: #12 152.4 .../node_modules/nuxt postinstall: Done #12 152.6 #12 152.6 dependencies: #12 152.6 + husky 7.0.4 #12 152.6 + lint-staged 12.1.2 #12 152.6 #12 152.6 devDependencies: #12 152.6 + @commitlint/cli 15.0.0 #12 152.6 + @commitlint/config-conventional 15.0.0 #12 152.6 #12 152.6 packages/codemirror-lang-graphql prepare$ rollup -c #12 152.6 packages/hoppscotch-data prepare$ tsup src --dts #12 152.6 packages/hoppscotch-js-sandbox postinstall$ pnpm run build #12 152.6 . prepare$ husky install #12 152.7 . prepare: Done #12 152.9 packages/hoppscotch-data prepare: CLI Building entry: src/index.ts, src/graphql/index.ts, src/rest/HoppRESTAuth.ts, src/rest/content-types.ts, src/rest/index.ts #12 152.9 packages/hoppscotch-data prepare: CLI Using tsconfig: tsconfig.json #12 152.9 packages/hoppscotch-data prepare: CLI tsup v5.9.0 #12 152.9 packages/hoppscotch-data prepare: CLI Using tsup config: /app/packages/hoppscotch-data/tsup.config.ts #12 152.9 packages/hoppscotch-data prepare: CLI Target: node12 #12 152.9 packages/hoppscotch-data prepare: CLI Cleaning output folder #12 152.9 packages/hoppscotch-data prepare: CJS Build start #12 152.9 packages/hoppscotch-data prepare: CJS Build success in 12ms #12 153.0 packages/hoppscotch-js-sandbox postinstall: > @hoppscotch/js-sandbox@1.0.0 build /app/packages/hoppscotch-js-sandbox #12 153.0 packages/hoppscotch-js-sandbox postinstall: > npx tsc #12 153.2 packages/hoppscotch-data prepare: DTS Build start #12 153.4 packages/codemirror-lang-graphql prepare: src/index.js → dist/index.cjs, ./dist... #12 156.2 packages/hoppscotch-data prepare: DTS Build success in 2971ms #12 156.4 packages/hoppscotch-data prepare: Done #12 157.6 packages/codemirror-lang-graphql prepare: created dist/index.cjs, ./dist in 4.1s #12 157.7 packages/codemirror-lang-graphql prepare: Done #12 158.4 packages/hoppscotch-js-sandbox postinstall: Done #12 158.4 packages/hoppscotch-app postinstall$ pnpm run gql-codegen #12 158.7 packages/hoppscotch-app postinstall: > hoppscotch-app@2.1.0 gql-codegen /app/packages/hoppscotch-app #12 158.7 packages/hoppscotch-app postinstall: > graphql-codegen --config gql-codegen.yml #12 159.6 packages/hoppscotch-app postinstall: [16:03:36] Parse configuration [started] #12 159.6 packages/hoppscotch-app postinstall: [16:03:36] Parse configuration [completed] #12 159.6 packages/hoppscotch-app postinstall: [16:03:36] Generate outputs [started] #12 159.6 packages/hoppscotch-app postinstall: [16:03:36] Generate helpers/backend/graphql.ts [started] #12 159.6 packages/hoppscotch-app postinstall: [16:03:36] Generate helpers/backend/backend-schema.json [started] #12 159.6 packages/hoppscotch-app postinstall: [16:03:36] Load GraphQL schemas [started] #12 159.6 packages/hoppscotch-app postinstall: [16:03:36] Load GraphQL schemas [started] #12 159.6 packages/hoppscotch-app postinstall: (node:265) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time #12 159.6 packages/hoppscotch-app postinstall: (Use `node --trace-warnings ...` to show where the warning was created) #12 169.7 packages/hoppscotch-app postinstall: [16:03:46] Load GraphQL schemas [failed] #12 169.7 packages/hoppscotch-app postinstall: [16:03:46] → Failed to load schema #12 169.7 packages/hoppscotch-app postinstall: [16:03:46] Generate helpers/backend/graphql.ts [failed] #12 169.7 packages/hoppscotch-app postinstall: [16:03:46] → Failed to load schema #12 169.7 packages/hoppscotch-app postinstall: [16:03:46] Load GraphQL schemas [failed] #12 169.7 packages/hoppscotch-app postinstall: [16:03:46] → Failed to load schema #12 169.7 packages/hoppscotch-app postinstall: [16:03:46] Generate helpers/backend/backend-schema.json [failed] #12 169.7 packages/hoppscotch-app postinstall: [16:03:46] → Failed to load schema #12 169.7 packages/hoppscotch-app postinstall: [16:03:46] Generate outputs [failed] #12 169.7 packages/hoppscotch-app postinstall: Something went wrong #12 169.7 packages/hoppscotch-app postinstall:  ELIFECYCLE  Command failed with exit code 1. #12 169.7 packages/hoppscotch-app postinstall: Failed #12 169.7  ELIFECYCLE  Command failed with exit code 1. ------ executor failed running [/bin/sh -c pnpm i --unsafe-perm=true]: exit code: 1 ERROR: Service 'web' failed to build : Build failed ``` ### Steps to reproduce i clone this repo with git. run `docker-compose up` See error i don't know what environment under the options. i did't change anything. Docker images downloaded through this command `docker run --name hoppscotch -p 3000:3000 hoppscotch/hoppscotch` can run, but it is based on the AMD64 architecture, not arm64, performance is poor If I run `docker-compose up` on an M1 MAC, Will it compile for ARM64 architecture? ### Environment Production ### Version Local
kerem 2026-03-16 16:29:54 +03:00
Author
Owner

@liyasthomas commented on GitHub (Dec 4, 2021):

@AatroxC can you pull the latest changes, run docker-compose up again and see if the issue persists. I can't reproduce this issue at my end. I'm on a mac M1 laptop, Docker: latest version.

<!-- gh-comment-id:985954302 --> @liyasthomas commented on GitHub (Dec 4, 2021): @AatroxC can you pull the latest changes, run `docker-compose up` again and see if the issue persists. I can't reproduce this issue at my end. I'm on a mac M1 laptop, Docker: latest version.
Author
Owner

@ghost commented on GitHub (May 4, 2023):

Hi @liyasthomas San

Facing the same issue on Intel NUC Debian 10

Environment Detail :

OS Details :

root@DEB-NUC11PAH-G6PA2500045B:~/hoppscotch# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"


Docker Version :

root@DEB-NUC11PAH-G6PA2500045B:~/hoppscotch# docker -v
Docker version 20.10.23, build 7155243

Node & NPM version :

root@DEB-NUC11PAH-G6PA2500045B:~/hoppscotch# npm -v
8.1.0
root@DEB-NUC11PAH-G6PA2500045B:~/hoppscotch# node -v
v16.13.0

Git Tag : v3.0.1


root@DEB-NUC11PAH-G6PA2500045B:~/hoppscotch# git branch
* (HEAD detached at v3.0.1)
  main

docker-compose up failed ERROR: Service 'web' failed to build : Build failed

root@DEB-NUC11PAH-G6PA2500045B:~/hoppscotch# docker-compose up
Creating network "hoppscotch_default" with the default driver
Building web
Sending build context to Docker daemon  75.21MB
Step 1/13 : FROM node:lts-alpine
 ---> 6f44d13dd258
Step 2/13 : LABEL maintainer="Hoppscotch (support@hoppscotch.io)"
 ---> Running in 5a5569052609
Removing intermediate container 5a5569052609
 ---> 321b92b0f61a
Step 3/13 : RUN apk add --no-cache --virtual .gyp   python3   make   g++
 ---> Running in 1a235b8c7b08
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
(1/25) Installing libbz2 (1.0.8-r4)
(2/25) Installing libexpat (2.5.0-r0)
(3/25) Installing libffi (3.4.4-r0)
(4/25) Installing gdbm (1.23-r0)
(5/25) Installing xz-libs (5.2.9-r0)
(6/25) Installing mpdecimal (2.5.1-r1)
(7/25) Installing ncurses-terminfo-base (6.3_p20221119-r0)
(8/25) Installing ncurses-libs (6.3_p20221119-r0)
(9/25) Installing readline (8.2.0-r0)
(10/25) Installing sqlite-libs (3.40.1-r0)
(11/25) Installing python3 (3.10.11-r0)
(12/25) Installing make (4.3-r1)
(13/25) Installing libstdc++-dev (12.2.1_git20220924-r4)
(14/25) Installing binutils (2.39-r2)
(15/25) Installing libgomp (12.2.1_git20220924-r4)
(16/25) Installing libatomic (12.2.1_git20220924-r4)
(17/25) Installing gmp (6.2.1-r2)
(18/25) Installing isl25 (0.25-r1)
(19/25) Installing mpfr4 (4.1.0-r0)
(20/25) Installing mpc1 (1.2.1-r1)
(21/25) Installing gcc (12.2.1_git20220924-r4)
(22/25) Installing musl-dev (1.2.3-r4)
(23/25) Installing libc-dev (0.7.2-r3)
(24/25) Installing g++ (12.2.1_git20220924-r4)
(25/25) Installing .gyp (20230504.070319)
Executing busybox-1.35.0-r29.trigger
OK: 287 MiB in 42 packages
Removing intermediate container 1a235b8c7b08
 ---> 49fc33fd00d5
Step 4/13 : WORKDIR /app
 ---> Running in ba6445f39a28
Removing intermediate container ba6445f39a28
 ---> f794d79e34ce
Step 5/13 : ADD . /app/
 ---> 88a6c6ba33c0
Step 6/13 : COPY . .
 ---> 613b69cc7ed9
Step 7/13 : RUN npm install -g pnpm
 ---> Running in 05dc9a4629a7

added 1 package in 582ms

1 package is looking for funding
  run `npm fund` for details
npm notice 
npm notice New minor version of npm available! 9.5.1 -> 9.6.6
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.6>
npm notice Run `npm install -g npm@9.6.6` to update!
npm notice 
Removing intermediate container 05dc9a4629a7
 ---> 58de4c30a43b
Step 8/13 : RUN pnpm i --unsafe-perm=true
 ---> Running in d43c7f4634cf
Scope: all 6 workspace projects
Progress: resolved 1, reused 0, downloaded 0, added 0
Progress: resolved 17, reused 0, downloaded 14, added 0
Progress: resolved 51, reused 0, downloaded 48, added 0
Progress: resolved 68, reused 0, downloaded 63, added 0
packages/hoppscotch-app                  |  WARN  deprecated subscriptions-transport-ws@0.11.0
Progress: resolved 118, reused 0, downloaded 112, added 0
packages/hoppscotch-cli                  |  WARN  deprecated @types/axios@0.14.0
packages/hoppscotch-cli                  |  WARN  deprecated @types/commander@2.12.2
Progress: resolved 149, reused 0, downloaded 149, added 0
packages/hoppscotch-cli                  |  WARN  deprecated @types/chalk@2.2.0
Progress: resolved 151, reused 0, downloaded 151, added 0
Progress: resolved 218, reused 0, downloaded 205, added 0
Progress: resolved 302, reused 0, downloaded 283, added 0
Progress: resolved 347, reused 0, downloaded 334, added 0
Progress: resolved 364, reused 0, downloaded 348, added 0
packages/hoppscotch-app                  |  WARN  deprecated har-validator@5.1.5
packages/hoppscotch-app                  |  WARN  deprecated querystring@0.2.0
Progress: resolved 420, reused 0, downloaded 408, added 0
packages/hoppscotch-app                  |  WARN  deprecated rollup-plugin-inject@3.0.2
Progress: resolved 504, reused 0, downloaded 499, added 0
packages/hoppscotch-app                  |  WARN  deprecated xmldom@0.1.31
Progress: resolved 642, reused 0, downloaded 636, added 0
Progress: resolved 742, reused 0, downloaded 732, added 0
Progress: resolved 843, reused 0, downloaded 808, added 0
Progress: resolved 974, reused 0, downloaded 937, added 0
packages/hoppscotch-app                  |  WARN  deprecated mkdirp-promise@1.1.0
Progress: resolved 1069, reused 0, downloaded 1010, added 0
Progress: resolved 1177, reused 0, downloaded 1122, added 0
Progress: resolved 1264, reused 0, downloaded 1207, added 0
Progress: resolved 1390, reused 0, downloaded 1338, added 0
Progress: resolved 1427, reused 0, downloaded 1376, added 0
Progress: resolved 1429, reused 0, downloaded 1378, added 0
packages/hoppscotch-app                  |  WARN  deprecated rollup-plugin-terser@7.0.2
Progress: resolved 1479, reused 0, downloaded 1421, added 0
Progress: resolved 1515, reused 0, downloaded 1461, added 0
Packages: +1489
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1533, reused 0, downloaded 1475, added 0
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /root/.local/share/pnpm/store/v3
  Virtual store is at:             node_modules/.pnpm
Progress: resolved 1533, reused 0, downloaded 1482, added 1207
.../core-js@3.6.5/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
.../node_modules/protobufjs postinstall$ node scripts/postinstall
.../node_modules/vue-demi postinstall$ node ./scripts/postinstall.js
.../core-js@3.6.5/node_modules/core-js postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
.../core-js@3.6.5/node_modules/core-js postinstall: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
.../core-js@3.6.5/node_modules/core-js postinstall: > https://opencollective.com/core-js 
.../core-js@3.6.5/node_modules/core-js postinstall: > https://www.patreon.com/zloirock 
.../core-js@3.6.5/node_modules/core-js postinstall: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
.../core-js@3.6.5/node_modules/core-js postinstall: Done
.../node_modules/protobufjs postinstall: Done
.../node_modules/vue-demi postinstall: Done
.../esbuild@0.14.48/node_modules/esbuild postinstall$ node install.js
.../esbuild@0.15.7/node_modules/esbuild postinstall$ node install.js
.../esbuild@0.14.48/node_modules/esbuild postinstall: Done
.../esbuild@0.15.7/node_modules/esbuild postinstall: Done
Progress: resolved 1533, reused 0, downloaded 1482, added 1489, done
packages/codemirror-lang-graphql prepare$ rollup -c
packages/hoppscotch-data prepare$ pnpm run build:code && pnpm run build:decl
. prepare$ husky install
. prepare: Done
packages/codemirror-lang-graphql prepare: Browserslist: caniuse-lite is outdated. Please run:
packages/codemirror-lang-graphql prepare:   npx browserslist@latest --update-db
packages/codemirror-lang-graphql prepare:   Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
packages/hoppscotch-data prepare: > @hoppscotch/data@0.4.4 build:code /app/packages/hoppscotch-data
packages/hoppscotch-data prepare: > vite build
packages/codemirror-lang-graphql prepare: 
packages/codemirror-lang-graphql prepare: src/index.js → dist/index.cjs, ./dist...
packages/hoppscotch-data prepare: vite v3.1.0 building for production...
packages/hoppscotch-data prepare: transforming...
packages/hoppscotch-data prepare: ✓ 287 modules transformed.
packages/hoppscotch-data prepare: rendering chunks...
packages/hoppscotch-data prepare: dist/hoppscotch-data.js   46.28 KiB / gzip: 13.39 KiB
packages/hoppscotch-data prepare: dist/hoppscotch-data.cjs   34.28 KiB / gzip: 12.04 KiB
packages/codemirror-lang-graphql prepare: created dist/index.cjs, ./dist in 1.4s
packages/codemirror-lang-graphql prepare: Done
packages/hoppscotch-data prepare: > @hoppscotch/data@0.4.4 build:decl /app/packages/hoppscotch-data
packages/hoppscotch-data prepare: > tsc --project tsconfig.decl.json
packages/hoppscotch-data prepare: Done
packages/hoppscotch-js-sandbox postinstall$ pnpm run build
packages/hoppscotch-js-sandbox postinstall: > @hoppscotch/js-sandbox@2.1.0 build /app/packages/hoppscotch-js-sandbox
packages/hoppscotch-js-sandbox postinstall: > pnpm exec tsup
packages/hoppscotch-js-sandbox postinstall: CLI Building entry: src/index.ts
packages/hoppscotch-js-sandbox postinstall: CLI Using tsconfig: tsconfig.json
packages/hoppscotch-js-sandbox postinstall: CLI tsup v5.12.9
packages/hoppscotch-js-sandbox postinstall: CLI Using tsup config: /app/packages/hoppscotch-js-sandbox/tsup.config.ts
packages/hoppscotch-js-sandbox postinstall: CLI Target: node12
packages/hoppscotch-js-sandbox postinstall: CLI Cleaning output folder
packages/hoppscotch-js-sandbox postinstall: ESM Build start
packages/hoppscotch-js-sandbox postinstall: CJS Build start
packages/hoppscotch-js-sandbox postinstall: ESM ⚡️ Build success in 15ms
packages/hoppscotch-js-sandbox postinstall: CJS ⚡️ Build success in 15ms
packages/hoppscotch-js-sandbox postinstall: ESM lib/index.mjs     18.97 KB
packages/hoppscotch-js-sandbox postinstall: ESM lib/index.mjs.map 38.94 KB
packages/hoppscotch-js-sandbox postinstall: CJS lib/index.js     20.05 KB
packages/hoppscotch-js-sandbox postinstall: CJS lib/index.js.map 38.94 KB
packages/hoppscotch-js-sandbox postinstall: DTS Build start
packages/hoppscotch-js-sandbox postinstall: DTS ⚡️ Build success in 1326ms
packages/hoppscotch-js-sandbox postinstall: DTS lib/index.d.ts 2.65 KB
packages/hoppscotch-js-sandbox postinstall: Done
packages/hoppscotch-app postinstall$ pnpm run gql-codegen
packages/hoppscotch-app postinstall: > hoppscotch-app@3.0.1 gql-codegen /app/packages/hoppscotch-app
packages/hoppscotch-app postinstall: > graphql-codegen --config gql-codegen.yml
packages/hoppscotch-app postinstall: [STARTED] Parse Configuration
packages/hoppscotch-app postinstall: [SUCCESS] Parse Configuration
packages/hoppscotch-app postinstall: [STARTED] Generate outputs
packages/hoppscotch-app postinstall: [STARTED] Generate src/helpers/backend/graphql.ts
packages/hoppscotch-app postinstall: [STARTED] Load GraphQL schemas
packages/hoppscotch-app postinstall: [SUCCESS] Load GraphQL schemas
packages/hoppscotch-app postinstall: [STARTED] Load GraphQL documents
packages/hoppscotch-app postinstall: [SUCCESS] Load GraphQL documents
packages/hoppscotch-app postinstall: [STARTED] Generate
packages/hoppscotch-app postinstall: [FAILED] GraphQL Document Validation failed with 2 errors;
packages/hoppscotch-app postinstall: [FAILED]   Error 0: GraphQLDocumentError: Variable "$cursor" of type "String" used in position expecting type "ID".
packages/hoppscotch-app postinstall: [FAILED]     at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildren.graphql:1:49
packages/hoppscotch-app postinstall: [FAILED]     at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildren.graphql:3:22
packages/hoppscotch-app postinstall: [FAILED] 
packages/hoppscotch-app postinstall: [FAILED] Error 1: GraphQLDocumentError: Variable "$cursor" of type "String" used in position expecting type "ID".
packages/hoppscotch-app postinstall: [FAILED]     at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildrenIDs.graphql:1:52
packages/hoppscotch-app postinstall: [FAILED]     at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildrenIDs.graphql:3:22
packages/hoppscotch-app postinstall: [STARTED] Generate src/helpers/backend/backend-schema.json
packages/hoppscotch-app postinstall: [STARTED] Load GraphQL schemas
packages/hoppscotch-app postinstall: [SUCCESS] Load GraphQL schemas
packages/hoppscotch-app postinstall: [STARTED] Load GraphQL documents
packages/hoppscotch-app postinstall: [SUCCESS] Load GraphQL documents
packages/hoppscotch-app postinstall: [STARTED] Generate
packages/hoppscotch-app postinstall: [SUCCESS] Generate
packages/hoppscotch-app postinstall: [SUCCESS] Generate src/helpers/backend/backend-schema.json
packages/hoppscotch-app postinstall: [SUCCESS] Generate outputs
packages/hoppscotch-app postinstall: GraphQL Document Validation failed with 2 errors;
packages/hoppscotch-app postinstall:   Error 0: GraphQLDocumentError: Variable "$cursor" of type "String" used in position expecting type "ID".
packages/hoppscotch-app postinstall:     at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildren.graphql:1:49
packages/hoppscotch-app postinstall:     at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildren.graphql:3:22
packages/hoppscotch-app postinstall: Error 1: GraphQLDocumentError: Variable "$cursor" of type "String" used in position expecting type "ID".
packages/hoppscotch-app postinstall:     at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildrenIDs.graphql:1:52
packages/hoppscotch-app postinstall:     at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildrenIDs.graphql:3:22
packages/hoppscotch-app postinstall:  ELIFECYCLE  Command failed with exit code 1.
packages/hoppscotch-app postinstall: Failed
 ELIFECYCLE  Command failed with exit code 1.
The command '/bin/sh -c pnpm i --unsafe-perm=true' returned a non-zero code: 1
ERROR: Service 'web' failed to build : Build failed 
<!-- gh-comment-id:1534214523 --> @ghost commented on GitHub (May 4, 2023): Hi @liyasthomas San Facing the same issue on Intel NUC Debian 10 Environment Detail : OS Details : ``` root@DEB-NUC11PAH-G6PA2500045B:~/hoppscotch# cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 10 (buster)" NAME="Debian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" ``` Docker Version : ``` root@DEB-NUC11PAH-G6PA2500045B:~/hoppscotch# docker -v Docker version 20.10.23, build 7155243 ``` Node & NPM version : ``` root@DEB-NUC11PAH-G6PA2500045B:~/hoppscotch# npm -v 8.1.0 root@DEB-NUC11PAH-G6PA2500045B:~/hoppscotch# node -v v16.13.0 ``` Git Tag : v3.0.1 ``` root@DEB-NUC11PAH-G6PA2500045B:~/hoppscotch# git branch * (HEAD detached at v3.0.1) main ``` **docker-compose up failed ERROR: Service 'web' failed to build : Build failed** ``` root@DEB-NUC11PAH-G6PA2500045B:~/hoppscotch# docker-compose up Creating network "hoppscotch_default" with the default driver Building web Sending build context to Docker daemon 75.21MB Step 1/13 : FROM node:lts-alpine ---> 6f44d13dd258 Step 2/13 : LABEL maintainer="Hoppscotch (support@hoppscotch.io)" ---> Running in 5a5569052609 Removing intermediate container 5a5569052609 ---> 321b92b0f61a Step 3/13 : RUN apk add --no-cache --virtual .gyp python3 make g++ ---> Running in 1a235b8c7b08 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz (1/25) Installing libbz2 (1.0.8-r4) (2/25) Installing libexpat (2.5.0-r0) (3/25) Installing libffi (3.4.4-r0) (4/25) Installing gdbm (1.23-r0) (5/25) Installing xz-libs (5.2.9-r0) (6/25) Installing mpdecimal (2.5.1-r1) (7/25) Installing ncurses-terminfo-base (6.3_p20221119-r0) (8/25) Installing ncurses-libs (6.3_p20221119-r0) (9/25) Installing readline (8.2.0-r0) (10/25) Installing sqlite-libs (3.40.1-r0) (11/25) Installing python3 (3.10.11-r0) (12/25) Installing make (4.3-r1) (13/25) Installing libstdc++-dev (12.2.1_git20220924-r4) (14/25) Installing binutils (2.39-r2) (15/25) Installing libgomp (12.2.1_git20220924-r4) (16/25) Installing libatomic (12.2.1_git20220924-r4) (17/25) Installing gmp (6.2.1-r2) (18/25) Installing isl25 (0.25-r1) (19/25) Installing mpfr4 (4.1.0-r0) (20/25) Installing mpc1 (1.2.1-r1) (21/25) Installing gcc (12.2.1_git20220924-r4) (22/25) Installing musl-dev (1.2.3-r4) (23/25) Installing libc-dev (0.7.2-r3) (24/25) Installing g++ (12.2.1_git20220924-r4) (25/25) Installing .gyp (20230504.070319) Executing busybox-1.35.0-r29.trigger OK: 287 MiB in 42 packages Removing intermediate container 1a235b8c7b08 ---> 49fc33fd00d5 Step 4/13 : WORKDIR /app ---> Running in ba6445f39a28 Removing intermediate container ba6445f39a28 ---> f794d79e34ce Step 5/13 : ADD . /app/ ---> 88a6c6ba33c0 Step 6/13 : COPY . . ---> 613b69cc7ed9 Step 7/13 : RUN npm install -g pnpm ---> Running in 05dc9a4629a7 added 1 package in 582ms 1 package is looking for funding run `npm fund` for details npm notice npm notice New minor version of npm available! 9.5.1 -> 9.6.6 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.6> npm notice Run `npm install -g npm@9.6.6` to update! npm notice Removing intermediate container 05dc9a4629a7 ---> 58de4c30a43b Step 8/13 : RUN pnpm i --unsafe-perm=true ---> Running in d43c7f4634cf Scope: all 6 workspace projects Progress: resolved 1, reused 0, downloaded 0, added 0 Progress: resolved 17, reused 0, downloaded 14, added 0 Progress: resolved 51, reused 0, downloaded 48, added 0 Progress: resolved 68, reused 0, downloaded 63, added 0 packages/hoppscotch-app |  WARN  deprecated subscriptions-transport-ws@0.11.0 Progress: resolved 118, reused 0, downloaded 112, added 0 packages/hoppscotch-cli |  WARN  deprecated @types/axios@0.14.0 packages/hoppscotch-cli |  WARN  deprecated @types/commander@2.12.2 Progress: resolved 149, reused 0, downloaded 149, added 0 packages/hoppscotch-cli |  WARN  deprecated @types/chalk@2.2.0 Progress: resolved 151, reused 0, downloaded 151, added 0 Progress: resolved 218, reused 0, downloaded 205, added 0 Progress: resolved 302, reused 0, downloaded 283, added 0 Progress: resolved 347, reused 0, downloaded 334, added 0 Progress: resolved 364, reused 0, downloaded 348, added 0 packages/hoppscotch-app |  WARN  deprecated har-validator@5.1.5 packages/hoppscotch-app |  WARN  deprecated querystring@0.2.0 Progress: resolved 420, reused 0, downloaded 408, added 0 packages/hoppscotch-app |  WARN  deprecated rollup-plugin-inject@3.0.2 Progress: resolved 504, reused 0, downloaded 499, added 0 packages/hoppscotch-app |  WARN  deprecated xmldom@0.1.31 Progress: resolved 642, reused 0, downloaded 636, added 0 Progress: resolved 742, reused 0, downloaded 732, added 0 Progress: resolved 843, reused 0, downloaded 808, added 0 Progress: resolved 974, reused 0, downloaded 937, added 0 packages/hoppscotch-app |  WARN  deprecated mkdirp-promise@1.1.0 Progress: resolved 1069, reused 0, downloaded 1010, added 0 Progress: resolved 1177, reused 0, downloaded 1122, added 0 Progress: resolved 1264, reused 0, downloaded 1207, added 0 Progress: resolved 1390, reused 0, downloaded 1338, added 0 Progress: resolved 1427, reused 0, downloaded 1376, added 0 Progress: resolved 1429, reused 0, downloaded 1378, added 0 packages/hoppscotch-app |  WARN  deprecated rollup-plugin-terser@7.0.2 Progress: resolved 1479, reused 0, downloaded 1421, added 0 Progress: resolved 1515, reused 0, downloaded 1461, added 0 Packages: +1489 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 1533, reused 0, downloaded 1475, added 0 Packages are hard linked from the content-addressable store to the virtual store. Content-addressable store is at: /root/.local/share/pnpm/store/v3 Virtual store is at: node_modules/.pnpm Progress: resolved 1533, reused 0, downloaded 1482, added 1207 .../core-js@3.6.5/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}" .../node_modules/protobufjs postinstall$ node scripts/postinstall .../node_modules/vue-demi postinstall$ node ./scripts/postinstall.js .../core-js@3.6.5/node_modules/core-js postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! .../core-js@3.6.5/node_modules/core-js postinstall: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: .../core-js@3.6.5/node_modules/core-js postinstall: > https://opencollective.com/core-js .../core-js@3.6.5/node_modules/core-js postinstall: > https://www.patreon.com/zloirock .../core-js@3.6.5/node_modules/core-js postinstall: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) .../core-js@3.6.5/node_modules/core-js postinstall: Done .../node_modules/protobufjs postinstall: Done .../node_modules/vue-demi postinstall: Done .../esbuild@0.14.48/node_modules/esbuild postinstall$ node install.js .../esbuild@0.15.7/node_modules/esbuild postinstall$ node install.js .../esbuild@0.14.48/node_modules/esbuild postinstall: Done .../esbuild@0.15.7/node_modules/esbuild postinstall: Done Progress: resolved 1533, reused 0, downloaded 1482, added 1489, done packages/codemirror-lang-graphql prepare$ rollup -c packages/hoppscotch-data prepare$ pnpm run build:code && pnpm run build:decl . prepare$ husky install . prepare: Done packages/codemirror-lang-graphql prepare: Browserslist: caniuse-lite is outdated. Please run: packages/codemirror-lang-graphql prepare: npx browserslist@latest --update-db packages/codemirror-lang-graphql prepare: Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating packages/hoppscotch-data prepare: > @hoppscotch/data@0.4.4 build:code /app/packages/hoppscotch-data packages/hoppscotch-data prepare: > vite build packages/codemirror-lang-graphql prepare: packages/codemirror-lang-graphql prepare: src/index.js → dist/index.cjs, ./dist... packages/hoppscotch-data prepare: vite v3.1.0 building for production... packages/hoppscotch-data prepare: transforming... packages/hoppscotch-data prepare: ✓ 287 modules transformed. packages/hoppscotch-data prepare: rendering chunks... packages/hoppscotch-data prepare: dist/hoppscotch-data.js 46.28 KiB / gzip: 13.39 KiB packages/hoppscotch-data prepare: dist/hoppscotch-data.cjs 34.28 KiB / gzip: 12.04 KiB packages/codemirror-lang-graphql prepare: created dist/index.cjs, ./dist in 1.4s packages/codemirror-lang-graphql prepare: Done packages/hoppscotch-data prepare: > @hoppscotch/data@0.4.4 build:decl /app/packages/hoppscotch-data packages/hoppscotch-data prepare: > tsc --project tsconfig.decl.json packages/hoppscotch-data prepare: Done packages/hoppscotch-js-sandbox postinstall$ pnpm run build packages/hoppscotch-js-sandbox postinstall: > @hoppscotch/js-sandbox@2.1.0 build /app/packages/hoppscotch-js-sandbox packages/hoppscotch-js-sandbox postinstall: > pnpm exec tsup packages/hoppscotch-js-sandbox postinstall: CLI Building entry: src/index.ts packages/hoppscotch-js-sandbox postinstall: CLI Using tsconfig: tsconfig.json packages/hoppscotch-js-sandbox postinstall: CLI tsup v5.12.9 packages/hoppscotch-js-sandbox postinstall: CLI Using tsup config: /app/packages/hoppscotch-js-sandbox/tsup.config.ts packages/hoppscotch-js-sandbox postinstall: CLI Target: node12 packages/hoppscotch-js-sandbox postinstall: CLI Cleaning output folder packages/hoppscotch-js-sandbox postinstall: ESM Build start packages/hoppscotch-js-sandbox postinstall: CJS Build start packages/hoppscotch-js-sandbox postinstall: ESM ⚡️ Build success in 15ms packages/hoppscotch-js-sandbox postinstall: CJS ⚡️ Build success in 15ms packages/hoppscotch-js-sandbox postinstall: ESM lib/index.mjs 18.97 KB packages/hoppscotch-js-sandbox postinstall: ESM lib/index.mjs.map 38.94 KB packages/hoppscotch-js-sandbox postinstall: CJS lib/index.js 20.05 KB packages/hoppscotch-js-sandbox postinstall: CJS lib/index.js.map 38.94 KB packages/hoppscotch-js-sandbox postinstall: DTS Build start packages/hoppscotch-js-sandbox postinstall: DTS ⚡️ Build success in 1326ms packages/hoppscotch-js-sandbox postinstall: DTS lib/index.d.ts 2.65 KB packages/hoppscotch-js-sandbox postinstall: Done packages/hoppscotch-app postinstall$ pnpm run gql-codegen packages/hoppscotch-app postinstall: > hoppscotch-app@3.0.1 gql-codegen /app/packages/hoppscotch-app packages/hoppscotch-app postinstall: > graphql-codegen --config gql-codegen.yml packages/hoppscotch-app postinstall: [STARTED] Parse Configuration packages/hoppscotch-app postinstall: [SUCCESS] Parse Configuration packages/hoppscotch-app postinstall: [STARTED] Generate outputs packages/hoppscotch-app postinstall: [STARTED] Generate src/helpers/backend/graphql.ts packages/hoppscotch-app postinstall: [STARTED] Load GraphQL schemas packages/hoppscotch-app postinstall: [SUCCESS] Load GraphQL schemas packages/hoppscotch-app postinstall: [STARTED] Load GraphQL documents packages/hoppscotch-app postinstall: [SUCCESS] Load GraphQL documents packages/hoppscotch-app postinstall: [STARTED] Generate packages/hoppscotch-app postinstall: [FAILED] GraphQL Document Validation failed with 2 errors; packages/hoppscotch-app postinstall: [FAILED] Error 0: GraphQLDocumentError: Variable "$cursor" of type "String" used in position expecting type "ID". packages/hoppscotch-app postinstall: [FAILED] at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildren.graphql:1:49 packages/hoppscotch-app postinstall: [FAILED] at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildren.graphql:3:22 packages/hoppscotch-app postinstall: [FAILED] packages/hoppscotch-app postinstall: [FAILED] Error 1: GraphQLDocumentError: Variable "$cursor" of type "String" used in position expecting type "ID". packages/hoppscotch-app postinstall: [FAILED] at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildrenIDs.graphql:1:52 packages/hoppscotch-app postinstall: [FAILED] at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildrenIDs.graphql:3:22 packages/hoppscotch-app postinstall: [STARTED] Generate src/helpers/backend/backend-schema.json packages/hoppscotch-app postinstall: [STARTED] Load GraphQL schemas packages/hoppscotch-app postinstall: [SUCCESS] Load GraphQL schemas packages/hoppscotch-app postinstall: [STARTED] Load GraphQL documents packages/hoppscotch-app postinstall: [SUCCESS] Load GraphQL documents packages/hoppscotch-app postinstall: [STARTED] Generate packages/hoppscotch-app postinstall: [SUCCESS] Generate packages/hoppscotch-app postinstall: [SUCCESS] Generate src/helpers/backend/backend-schema.json packages/hoppscotch-app postinstall: [SUCCESS] Generate outputs packages/hoppscotch-app postinstall: GraphQL Document Validation failed with 2 errors; packages/hoppscotch-app postinstall: Error 0: GraphQLDocumentError: Variable "$cursor" of type "String" used in position expecting type "ID". packages/hoppscotch-app postinstall: at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildren.graphql:1:49 packages/hoppscotch-app postinstall: at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildren.graphql:3:22 packages/hoppscotch-app postinstall: Error 1: GraphQLDocumentError: Variable "$cursor" of type "String" used in position expecting type "ID". packages/hoppscotch-app postinstall: at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildrenIDs.graphql:1:52 packages/hoppscotch-app postinstall: at /app/packages/hoppscotch-app/src/helpers/backend/gql/queries/GetCollectionChildrenIDs.graphql:3:22 packages/hoppscotch-app postinstall:  ELIFECYCLE  Command failed with exit code 1. packages/hoppscotch-app postinstall: Failed  ELIFECYCLE  Command failed with exit code 1. The command '/bin/sh -c pnpm i --unsafe-perm=true' returned a non-zero code: 1 ERROR: Service 'web' failed to build : Build failed ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#644
No description provided.