Skip to content

🐛 Bug Report: npm run setup:project gives error #7509

@shooter01

Description

@shooter01

📜 Description

I am trying to follow the steps in this tutorial

https://docs.novu.co/community/run-in-local-machine

but error occured

👟 Reproduction steps

  1. git clone https://github.com/novuhq/novu.git
  2. cd novu && npm run setup:project

👍 Expected behavior

npm run setup:project ends without error

👎 Actual Behavior with Screenshots

root@shooter:~/novu/novu# npm run setup:project

> setup:project
> npx --yes pnpm@9.11.0 i && node scripts/setup-env-files.js && pnpm build

Scope: all 38 workspace projects
apps/api                                 |  WARN  deprecated sinon@9.2.4
apps/api                                 |  WARN  deprecated rimraf@3.0.2
apps/api                                 |  WARN  deprecated shortid@2.2.16
apps/inbound-mail                        |  WARN  deprecated mailparser@0.6.2
apps/web                                 |  WARN  deprecated @babel/polyfill@7.12.1
apps/web                                 |  WARN  deprecated @babel/plugin-proposal-optional-chaining@7.21.0
apps/web                                 |  WARN  deprecated react-flow-renderer@10.3.17
apps/web                                 |  WARN  deprecated xterm-addon-fit@0.7.0
apps/web                                 |  WARN  deprecated xterm@5.3.0
apps/ws                                  |  WARN  deprecated @types/socket.io@3.0.2
libs/application-generic                 |  WARN  deprecated codecov@3.8.3
libs/application-generic                 |  WARN  deprecated @opentelemetry/exporter-collector@0.25.0
libs/automation                          |  WARN  deprecated verdaccio@5.31.0
libs/embed                               |  WARN  deprecated rimraf@2.7.1
libs/embed                               |  WARN  deprecated rollup-plugin-commonjs@10.1.0
libs/embed                               |  WARN  deprecated rollup-plugin-json@4.0.0
libs/embed                               |  WARN  deprecated rollup-plugin-terser@7.0.2
packages/providers                       |  WARN  deprecated @bandwidth/messaging@4.1.3
packages/providers                       |  WARN  deprecated sms77-client@2.25.0
 WARN  deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.
 WARN  deprecated verdaccio@5.32.1: this version is deprecated, please migrate to 6.x versions
 WARN  135 deprecated subdependencies found: @azure/core-http@1.2.6, @azure/core-http@2.3.2, @azure/core-http@3.0.0, @babel/plugin-proposal-class-properties@7.18.6, @babel/plugin-proposal-nullish-coalescing-operator@7.18.6, @babel/plugin-proposal-numeric-separator@7.18.6, @babel/plugin-proposal-private-methods@7.18.6, @babel/plugin-proposal-private-property-in-object@7.21.0, @hapi/address@2.1.4, @hapi/formula@1.2.0, @hapi/hoek@8.5.1, @hapi/joi@16.1.8, @hapi/pinpoint@1.0.2, @hapi/topo@3.1.6, @humanwhocodes/config-array@0.13.0, @humanwhocodes/object-schema@2.0.3, @lerna/add@5.6.2, @lerna/bootstrap@5.6.2, @lerna/changed@5.6.2, @lerna/check-working-tree@5.6.2, @lerna/clean@5.6.2, @lerna/cli@5.6.2, @lerna/collect-uncommitted@5.6.2, @lerna/collect-updates@5.6.2, @lerna/command@5.6.2, @lerna/conventional-commits@5.6.2, @lerna/create-symlink@5.6.2, @lerna/describe-ref@5.6.2, @lerna/diff@5.6.2, @lerna/exec@5.6.2, @lerna/filter-options@5.6.2, @lerna/filter-packages@5.6.2, @lerna/get-npm-exec-opts@5.6.2, @lerna/get-packed@5.6.2, @lerna/github-client@5.6.2, @lerna/gitlab-client@5.6.2, @lerna/global-options@5.6.2, @lerna/has-npm-version@5.6.2, @lerna/import@5.6.2, @lerna/info@5.6.2, @lerna/init@5.6.2, @lerna/link@5.6.2, @lerna/list@5.6.2, @lerna/listable@5.6.2, @lerna/log-packed@5.6.2, @lerna/npm-conf@5.6.2, @lerna/npm-dist-tag@5.6.2, @lerna/npm-install@5.6.2, @lerna/npm-publish@5.6.2, @lerna/npm-run-script@5.6.2, @lerna/otplease@5.6.2, @lerna/output@5.6.2, @lerna/pack-directory@5.6.2, @lerna/package-graph@5.6.2, @lerna/package@5.6.2, @lerna/prerelease-id-from-version@5.6.2, @lerna/profiler@5.6.2, @lerna/project@5.6.2, @lerna/prompt@5.6.2, @lerna/publish@5.6.2, @lerna/pulse-till-done@5.6.2, @lerna/query-graph@5.6.2, @lerna/resolve-symlink@5.6.2, @lerna/rimraf-dir@5.6.2, @lerna/run-lifecycle@5.6.2, @lerna/run-topologically@5.6.2, @lerna/run@5.6.2, @lerna/symlink-binary@5.6.2, @lerna/symlink-dependencies@5.6.2, @lerna/temp-write@5.6.2, @lerna/timer@5.6.2, @lerna/validation-error@5.6.2, @lerna/version@5.6.2, @lerna/write-log-file@5.6.2, @npmcli/move-file@2.0.1, @opentelemetry/api-metrics@0.25.0, @opentelemetry/sdk-metrics-base@0.25.0, @types/ioredis@5.0.0, @vonage/vetch@1.6.0, abab@2.0.6, acorn-import-assertions@1.9.0, are-we-there-yet@2.0.0, are-we-there-yet@3.0.1, argv@0.0.2, build-url@1.3.3, chokidar@1.7.0, core-js@2.6.12, debuglog@1.0.1, domexception@2.0.1, domexception@4.0.0, fsevents@1.2.13, gauge@3.0.2, gauge@4.0.4, glob@6.0.4, glob@7.1.4, glob@7.1.6, glob@7.2.0, glob@7.2.3, glob@8.0.3, glob@8.1.0, google-p12-pem@3.1.4, google-p12-pem@4.0.1, inflight@1.0.6, is-accessor-descriptor@0.1.6, is-accessor-descriptor@1.0.0, is-data-descriptor@0.1.4, is-data-descriptor@1.0.0, loupe@2.3.6, mimelib@0.3.1, npmlog@5.0.1, npmlog@6.0.2, popper.js@1.16.1, q@1.5.1, querystring@0.2.0, querystring@0.2.1, read-package-json@5.0.2, readdir-scoped-modules@1.1.0, resolve-url@0.2.1, right-pad@1.0.1, rimraf@2.4.5, rimraf@2.6.3, shikiji-core@0.9.19, shikiji@0.9.19, source-map-resolve@0.5.3, source-map-resolve@0.6.0, source-map-url@0.4.1, sourcemap-codec@1.4.8, stable@0.1.8, subscriptions-transport-ws@0.11.0, superagent@8.1.2, svgo@1.3.2, urix@0.1.0, uuid@3.4.0, w3c-hr-time@1.0.2, workbox-google-analytics@6.5.4
Packages: +7303
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 6999, reused 6729, downloaded 0, added 183, done
node_modules/.pnpm/bcrypt@5.0.1_encoding@0.1.13/node_modules/bcrypt: Running install script, done in 479ms
node_modules/.pnpm/pprof@4.0.0_encoding@0.1.13/node_modules/pprof: Running install script...
node_modules/.pnpm/pprof@4.0.0_encoding@0.1.13/node_modules/pprof: Running install script, failed in 2.2s0.1.12__rbavgyr
.../node_modules/pprof install$ node-pre-gyp install --fallback-to-build
│ node-pre-gyp info it worked if it ends with ok
│ node-pre-gyp info using node-pre-gyp@1.0.10
│ node-pre-gyp info using node@20.16.0 | linux | x64
│ node-pre-gyp info check checked for "/root/novu/novu/node_modules/.pnpm/pprof@4.0.0_encoding@0.1.13/node_modules/pp…
│ node-pre-gyp http GET https://storage.googleapis.com/cloud-profiler/pprof-nodejs/release/v4.0.0/node-v115-linux-x64…
│ node-pre-gyp ERR! install response status 404 Not Found on https://storage.googleapis.com/cloud-profiler/pprof-node…
│ node-pre-gyp WARN Pre-built binaries not installable for pprof@4.0.0 and node@20.16.0 (node-v115 ABI, glibc) (falli…
│ node-pre-gyp WARN Hit error response status 404 Not Found on https://storage.googleapis.com/cloud-profiler/pprof-no…
│ gyp info it worked if it ends with ok
│ gyp info using node-gyp@10.1.0
│ gyp info using node@20.16.0 | linux | x64
│ gyp info ok
│ gyp info it worked if it ends with ok
│ gyp info using node-gyp@10.1.0
│ gyp info using node@20.16.0 | linux | x64
│ gyp info find Python using Python version 3.10.12 found at "/usr/bin/python3"
│ gyp info spawn /usr/bin/python3
│ gyp info spawn args [
│ gyp info spawn args '/root/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
│ gyp info spawn args 'binding.gyp',
│ gyp info spawn args '-f',
│ gyp info spawn args 'make',
│ gyp info spawn args '-I',
│ gyp info spawn args '/root/novu/novu/node_modules/.pnpm/pprof@4.0.0_encoding@0.1.13/node_modules/pprof/build/config…
│ gyp info spawn args '-I',
│ gyp info spawn args '/root/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
│ gyp info spawn args '-I',
│ gyp info spawn args '/root/.cache/node-gyp/20.16.0/include/node/common.gypi',
│ gyp info spawn args '-Dlibrary=shared_library',
│ gyp info spawn args '-Dvisibility=default',
│ gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/20.16.0',
│ gyp info spawn args '-Dnode_gyp_dir=/root/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp',
│ gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/20.16.0/<(target_arch)/node.lib',
│ gyp info spawn args '-Dmodule_root_dir=/root/novu/novu/node_modules/.pnpm/pprof@4.0.0_encoding@0.1.13/node_modules/…
│ gyp info spawn args '-Dnode_engine=v8',
│ gyp info spawn args '--depth=.',
│ gyp info spawn args '--no-parallel',
│ gyp info spawn args '--generator-output',
│ gyp info spawn args 'build',
│ gyp info spawn args '-Goutput_dir=.'
│ gyp info spawn args ]
│ gyp info ok
│ gyp info it worked if it ends with ok
│ gyp info using node-gyp@10.1.0
│ gyp info using node@20.16.0 | linux | x64
│ gyp ERR! build error
│ gyp ERR! stack Error: not found: make
│ gyp ERR! stack at getNotFoundError (/root/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/which/lib/i…
│ gyp ERR! stack at which (/root/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/which/lib/index.js:77:…
│ gyp ERR! stack at async doWhich (/root/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/lib/b…
│ gyp ERR! stack at async loadConfigGypi (/root/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gy…
│ gyp ERR! stack at async build (/root/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/lib/bui…
│ gyp ERR! stack at async run (/root/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-…
│ gyp ERR! System Linux 5.15.0-122-generic
│ gyp ERR! command "/root/.nvm/versions/node/v20.16.0/bin/node" "/root/.nvm/versions/node/v20.16.0/lib/node_modules/n…
│ gyp ERR! cwd /root/novu/novu/node_modules/.pnpm/pprof@4.0.0_encoding@0.1.13/node_modules/pprof
│ gyp ERR! node -v v20.16.0
│ gyp ERR! node-gyp -v v10.1.0
│ gyp ERR! not ok
│ node-pre-gyp ERR! build error
│ node-pre-gyp ERR! stack Error: Failed to execute '/root/.nvm/versions/node/v20.16.0/bin/node /root/.nvm/versions/no…
│ node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/root/novu/novu/node_modules/.pnpm/@mapbox+node-pre-gyp@1.…
│ node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:519:28)
│ node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1105:16)
│ node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:305:5)
│ node-pre-gyp ERR! System Linux 5.15.0-122-generic
│ node-pre-gyp ERR! command "/root/.nvm/versions/node/v20.16.0/bin/node" "/root/novu/novu/node_modules/.pnpm/@mapbox+…
│ node-pre-gyp ERR! cwd /root/novu/novu/node_modules/.pnpm/pprof@4.0.0_encoding@0.1.13/node_modules/pprof
│ node-pre-gyp ERR! node -v v20.16.0
│ node-pre-gyp ERR! node-pre-gyp -v v1.0.10
│ node-pre-gyp ERR! not ok
│ Failed to execute '/root/.nvm/versions/node/v20.16.0/bin/node /root/.nvm/versions/node/v20.16.0/lib/node_modules/np…
└─ Failed in 2.2s at /root/novu/novu/node_modules/.pnpm/pprof@4.0.0_encoding@0.1.13/node_modules/pprof
node_modules/.pnpm/nx@20.3.0_@swc-node+register@1.10.9_@swc+core@1.3.107_@swc+helpers@0.5.12__@swc+types@0.1.12__rbavgyroguolp34cuptgwwlkfu/node_modules/nx: Running postinstall script...
 ELIFECYCLE  Command failed with exit code 1.

Novu version

latest

npm version

10.8.1

node version

v20.16.0

📃 Provide any additional context for the Bug.

I tried it on Linux and Windows

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions