Error Code 1 When I try to install an existing project in git

System Information
  • **Strapi Version4.3.8:
  • **Operating SystemMacOs Sierra:
  • **Node Version16.16.0:
  • **NPM Version8.11:
  • **Yarn Version3.2.4:

I am trying to install a strapi project and it gives me error code 1.

I already modified my version of Node, deleted the repository and created it again and it still shows me the same error.

npm ERR! code 1
npm ERR! path /Users/MacOwner/Documents/GitHub/BuyLow/blw-strapi-app/node_modules/esbuild
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! node:internal/errors:841
npm ERR!   const err = new Error(message);
npm ERR!               ^
npm ERR! 
npm ERR! Error: Command failed: /Users/MacOwner/Documents/GitHub/BuyLow/blw-strapi-app/node_modules/esbuild/bin/esbuild --version
npm ERR! dyld: Symbol not found: _SecTrustEvaluateWithError
npm ERR!   Referenced from: /Users/MacOwner/Documents/GitHub/BuyLow/blw-strapi-app/node_modules/esbuild/bin/esbuild
npm ERR!   Expected in: flat namespace
npm ERR! 
npm ERR! 
npm ERR!     at checkExecSyncError (node:child_process:828:11)
npm ERR!     at Object.execFileSync (node:child_process:863:15)
npm ERR!     at validateBinaryVersion (/Users/MacOwner/Documents/GitHub/BuyLow/blw-strapi-app/node_modules/esbuild/install.js:89:32)
npm ERR!     at /Users/MacOwner/Documents/GitHub/BuyLow/blw-strapi-app/node_modules/esbuild/install.js:242:5 {
npm ERR!   status: null,
npm ERR!   signal: 'SIGABRT',
npm ERR!   output: [
npm ERR!     null,
npm ERR!     Buffer(0) [Uint8Array] [],
npm ERR!     Buffer(189) [Uint8Array] [
npm ERR!       100, 121, 108, 100,  58,  32,  83, 121, 109,  98, 111, 108,
npm ERR!        32, 110, 111, 116,  32, 102, 111, 117, 110, 100,  58,  32,
npm ERR!        95,  83, 101,  99,  84, 114, 117, 115, 116,  69, 118,  97,
npm ERR!       108, 117,  97, 116, 101,  87, 105, 116, 104,  69, 114, 114,
npm ERR!       111, 114,  10,  32,  32,  82, 101, 102, 101, 114, 101, 110,
npm ERR!        99, 101, 100,  32, 102, 114, 111, 109,  58,  32,  47,  85,
npm ERR!       115, 101, 114, 115,  47,  77,  97,  99,  79, 119, 110, 101,
npm ERR!       114,  47,  68, 111,  99, 117, 109, 101, 110, 116, 115,  47,
npm ERR!        71, 105, 116,  72,
npm ERR!       ... 89 more items
npm ERR!     ]
npm ERR!   ],
npm ERR!   pid: 5387,
npm ERR!   stdout: Buffer(0) [Uint8Array] [],
npm ERR!   stderr: Buffer(189) [Uint8Array] [
npm ERR!     100, 121, 108, 100,  58,  32,  83, 121, 109,  98, 111, 108,
npm ERR!      32, 110, 111, 116,  32, 102, 111, 117, 110, 100,  58,  32,
npm ERR!      95,  83, 101,  99,  84, 114, 117, 115, 116,  69, 118,  97,
npm ERR!     108, 117,  97, 116, 101,  87, 105, 116, 104,  69, 114, 114,
npm ERR!     111, 114,  10,  32,  32,  82, 101, 102, 101, 114, 101, 110,
npm ERR!      99, 101, 100,  32, 102, 114, 111, 109,  58,  32,  47,  85,
npm ERR!     115, 101, 114, 115,  47,  77,  97,  99,  79, 119, 110, 101,
npm ERR!     114,  47,  68, 111,  99, 117, 109, 101, 110, 116, 115,  47,
npm ERR!      71, 105, 116,  72,
npm ERR!     ... 89 more items
npm ERR!   ]
npm ERR! }

npm ERR! A complete log of this run can be found in:


Try again with Node 14.
Are you on an M1 macbook by any chance?

NO, in i7 but i think is the SO… :face_with_head_bandage:

SO?

Anyway, did you try deleting package-lock.json and node_modules folder already and then running npm i again?