Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

mac m1 build problem

Ouverte
#76 1 commentaire 1 réaction 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
À clarifier
Activité
À l'abandon
Stack technique
javascript, node.js

Piste de recherche

Start by reproducing npm install from the ui folder and review the reported node-sass/node-gyp failure, especially the Node 20, darwin arm64, and Python checks. Done means the UI dependencies install successfully on the reported Mac M1 environment without this build error.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

I want to install it on my local computer.
by entering cd ui folder
I'm doing npm install but this is the error I get

**
npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path /Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/node-sass
npm ERR! command failed
npm ERR! command sh -c node scripts/build.js
npm ERR! Building: /usr/local/bin/node /Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli '/usr/local/bin/node',
npm ERR! gyp verb cli '/Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/node-gyp/bin/node-gyp.js',
npm ERR! gyp verb cli 'rebuild',
npm ERR! gyp verb cli '--verbose',
npm ERR! gyp verb cli '--libsass_ext=',
npm ERR! gyp verb cli '--libsass_cflags=',
npm ERR! gyp verb cli '--libsass_ldflags=',
npm ERR! gyp verb cli '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb which failed Error: not found: python2
npm ERR! gyp verb which failed at getNotFoundError (/Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/which/which.js:13:12)
npm ERR! gyp verb which failed at F (/Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/which/which.js:68:19)
npm ERR! gyp verb which failed at E (/Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/which/which.js:80:29)
npm ERR! gyp verb which failed at /Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/which/which.js:89:16
npm ERR! gyp verb which failed at /Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/isexe/index.js:42:5
npm ERR! gyp verb which failed at /Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/isexe/mode.js:8:5
npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:199:21)
npm ERR! gyp verb which failed python2 Error: not found: python2
npm ERR! gyp verb which failed at getNotFoundError (/Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/which/which.js:13:12)
npm ERR! gyp verb which failed at F (/Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/which/which.js:68:19)
npm ERR! gyp verb which failed at E (/Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/which/which.js:80:29)
npm ERR! gyp verb which failed at /Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/which/which.js:89:16
npm ERR! gyp verb which failed at /Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/isexe/index.js:42:5
npm ERR! gyp verb which failed at /Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/isexe/mode.js:8:5
npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:199:21) {
npm ERR! gyp verb which failed code: 'ENOENT'
npm ERR! gyp verb which failed }
npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb which succeeded python /Users/Shared/anaconda3/bin/python
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: /Users/Shared/anaconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack File "", line 1
npm ERR! gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
npm ERR! gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
npm ERR! gyp ERR! stack
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:422:12)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:514:28)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
npm ERR! gyp ERR! stack at Socket. (node:internal/child_process:457:11)
npm ERR! gyp ERR! stack at Socket.emit (node:events:514:28)
npm ERR! gyp ERR! stack at Pipe. (node:net:337:12)
npm ERR! gyp ERR! System Darwin 23.0.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd /Users/gospeed/Documents/Backend/socket.io-admin-ui/ui/node_modules/node-sass
npm ERR! gyp ERR! node -v v20.9.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1

npm ERR! A complete log of this run can be found in: /Users/gospeed/.npm/_logs/2024-01-02T09_54_45_627Z-debug-0.log
**

Langage dominant
Vue
Étoiles
414
Forks
109
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

  • Fournit un Dockerfile ou un fichier Docker Compose
  • Aucun modèle de pull request
  • Aucun guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de socketio/socket.io-admin-ui

Toutes les issues de socketio/socket.io-admin-ui

Issues similaires

Plus d'issues Build System

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.