Closed oneofvalts closed 9 months ago
With node v21.6.2, npm 10.4.0, command npx create-medusa-app@latest fails with the following (Only the tail of the log is included):
npx create-medusa-app@latest
10050 error code 1 10051 error path /home/aby/medusa/my-medusa-store/node_modules/@stdlib/number-float64-base-normalize 10052 error command failed 10053 error command sh -c node-gyp rebuild 10054 error gyp info it worked if it ends with ok 10054 error gyp info using node-gyp@10.0.1 10054 error gyp info using node@21.6.2 | linux | x64 10054 error gyp info find Python using Python version 3.11.7 found at "/usr/bin/python3" 10054 error gyp info spawn /usr/bin/python3 10054 error gyp info spawn args [ 10054 error gyp info spawn args '/usr/lib/node_modules/node-gyp/gyp/gyp_main.py', 10054 error gyp info spawn args 'binding.gyp', 10054 error gyp info spawn args '-f', 10054 error gyp info spawn args 'make', 10054 error gyp info spawn args '-I', 10054 error gyp info spawn args '/home/aby/medusa/my-medusa-store/node_modules/@stdlib/number-float64-base-normalize/build/config.gypi', 10054 error gyp info spawn args '-I', 10054 error gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi', 10054 error gyp info spawn args '-I', 10054 error gyp info spawn args '/home/aby/.cache/node-gyp/21.6.2/include/node/common.gypi', 10054 error gyp info spawn args '-Dlibrary=shared_library', 10054 error gyp info spawn args '-Dvisibility=default', 10054 error gyp info spawn args '-Dnode_root_dir=/home/aby/.cache/node-gyp/21.6.2', 10054 error gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp', 10054 error gyp info spawn args '-Dnode_lib_file=/home/aby/.cache/node-gyp/21.6.2/<(target_arch)/node.lib', 10054 error gyp info spawn args '-Dmodule_root_dir=/home/aby/medusa/my-medusa-store/node_modules/@stdlib/number-float64-base-normalize', 10054 error gyp info spawn args '-Dnode_engine=v8', 10054 error gyp info spawn args '--depth=.', 10054 error gyp info spawn args '--no-parallel', 10054 error gyp info spawn args '--generator-output', 10054 error gyp info spawn args 'build', 10054 error gyp info spawn args '-Goutput_dir=.' 10054 error gyp info spawn args ] 10054 error gyp: binding.gyp not found (cwd: /home/aby/medusa/my-medusa-store/node_modules/@stdlib/number-float64-base-normalize) while trying to load binding.gyp 10054 error gyp ERR! configure error 10054 error gyp ERR! stack Error: `gyp` failed with exit code: 1 10054 error gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/node-gyp/lib/configure.js:271:18) 10054 error gyp ERR! stack at ChildProcess.emit (node:events:519:28) 10054 error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12) 10054 error gyp ERR! System Linux 6.7.6-arch1-1 10054 error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 10054 error gyp ERR! cwd /home/aby/medusa/my-medusa-store/node_modules/@stdlib/number-float64-base-normalize 10054 error gyp ERR! node -v v21.6.2 10054 error gyp ERR! node-gyp -v v10.0.1 10054 error gyp ERR! not ok 10055 verbose exit 1 10056 timing npm Completed in 267616ms 10057 verbose unfinished npm timer reify 1708784904392 10058 verbose unfinished npm timer reify:build 1708785169316 10059 verbose unfinished npm timer build 1708785169319 10060 verbose unfinished npm timer build:deps 1708785169320 10061 verbose unfinished npm timer build:run:install 1708785169404 10062 verbose unfinished npm timer build:run:install:node_modules/@stdlib/number-float64-base-normalize 1708785169405 10063 verbose code 1
No response
getting the same issue
This seems to be a problem with npm installation, maybe refer to this solution?
Realized I am using a too new version of npm.
Preliminary Checks
Issue Summary
With node v21.6.2, npm 10.4.0, command
npx create-medusa-app@latest
fails with the following (Only the tail of the log is included):How can this issue be resolved?
No response
Are you interested in working on this issue?