Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

942
Views
la instalación de hilo falla en el sistema de importación; imprimir "%s.%s.%s" % sys.version_info[:3] sintaxis no válida

Al yarn install , aparece este error, pero no hay problemas con otros proyectos, también usé Brew para instalar el nodo. Tenga en cuenta qué más debo probar, ¿alguna sugerencia?

 error */node_modules/node-sass: Command failed. Exit code: 1 Command: node scripts/build.js Arguments: Directory: */node_modules/node-sass Output: Building: /opt/homebrew/Cellar/node@14/14.18.1/bin/node */node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= gyp info it worked if it ends with ok gyp verb cli [ gyp verb cli '/opt/homebrew/Cellar/node@14/14.18.1/bin/node', gyp verb cli '*/node_modules/node-gyp/bin/node-gyp.js', gyp verb cli 'rebuild', gyp verb cli '--verbose', gyp verb cli '--libsass_ext=', gyp verb cli '--libsass_cflags=', gyp verb cli '--libsass_ldflags=', gyp verb cli '--libsass_library=' gyp verb cli ] gyp info using node-gyp@3.8.0 gyp info using node@14.18.1 | darwin | arm64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb check python checking for Python executable "/opt/homebrew/opt/python@3.9/bin/python3" in the PATH gyp verb `which` succeeded /opt/homebrew/opt/python@3.9/bin/python3 /opt/homebrew/opt/python@3.9/bin/python3 gyp ERR! configure error gyp ERR! stack Error: Command failed: /opt/homebrew/opt/python@3.9/bin/python3 -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "<string>", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:383:12) gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at maybeClose (internal/child_process.js:1058:16) gyp ERR! stack at Socket.<anonymous> (internal/child_process.js:443:11) gyp ERR! stack at Socket.emit (events.js:400:28) gyp ERR! stack at Pipe.<anonymous> (net.js:686:12) gyp ERR! System Darwin 21.1.0 gyp ERR! command "/opt/homebrew/Cellar/node@14/14.18.1/bin/node" "*/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd */node_modules/node-sass gyp ERR! node -v v14.18.1
  • MacBook Pro M1 Max
  • Nodo v16.13.0
  • Npm 6.14.15
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Se solucionó aumentando la versión de node-sass

over 4 years ago · Santiago Trujillo Report

0

Después de actualizar MacOS a Monterey, apareció este problema. Simplemente reinstale y vuelva a vincular la versión del nodo, y todo arreglado.

Se cambió la versión a node@14 y se arregló. Qué he hecho:

 brew install node@14 brew unlink node brew link --overwrite node@14

Aquí hay un artículo con comandos que he usado https://medium.com/@georgeenathomas/3-step-process-to-downgrade-node-version-using-homebrew-bc0b0a72ae27

over 4 years ago · Santiago Trujillo Report

0

Eliminé mi configuración de preparación:

 brew remove yarn brew remove node brew remove node@14

Luego reinstalé todo sin brebaje, este enlace me ayudó mucho: https://www.jurnalanas.com/node-js-mac-m1/

Finalmente hilo reinstalado:

 rm -rf ~/.yarn curl -o- -L https://yarnpkg.com/install.sh | bash
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!