mac m1 build problem
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
- Domaine
- build-system, frontend
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
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de socketio/socket.io-admin-ui
-
MaxListenersExceededWarningOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 30/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 25/100
socketio/socket.io-admin-ui#86 · 2 commentaires ·
-
Add support for DenoOuverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
socketio/socket.io-admin-ui#84 · 2 commentaires · 2 réactions ·
-
bug
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
socketio/socket.io-admin-ui#83 · 7 commentaires · 2 réactions ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
Toutes les issues de socketio/socket.io-admin-ui
Issues similaires
-
backlog bug
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
WLAN-Pi/wlanpi-profiler#306 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
mesonbuild/wrapdb#2947 ·
Les mainteneurs répondent en général sous 1 jour
-
.Needs Triage .Run Repro Bot Priority:P2 Type:Bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
metabase/metabase#83153 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour