Closed Ludmila06Marques closed 10 months ago
The text that you deleted when you created this issue said:
Requests for help with
node-sass
are very common. Please be aware that this package is deprecated, you should seek alternatives and avoid opening new issues about it here.
I'm trying to install the dependencies of my project but it always gives an error in node-sass. My python version is 3.7.0, node is v20.9.0, node-gyp v9.4.0. I do not know what else to do !!! I leave here the error logs and my package json
npm ERR! code 1 npm ERR! path C:\Users\insti\OneDrive\Área de Trabalho\DEVELOP\standard-works-1\frontend-pro\node_modules\node-sass npm ERR! command failed npm ERR! command C:\windows\system32\cmd.exe /d /s /c node scripts/build.js npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\insti\OneDrive\Área de Trabalho\DEVELOP\standard-works-1\frontend-pro\node_modules\node-sass\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 'C:\Program Files\nodejs\node.exe', npm ERR! gyp verb cli 'C:\Users\insti\OneDrive\Área de Trabalho\DEVELOP\standard-works-1\frontend-pro\node_modules\node-sass\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 node-gyp@3.8.0 npm ERR! gyp info using node@20.9.0 | win32 | x64 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 "C:\Users\insti\AppData\Local\Programs\Python\Python37-32\python.exe" in the PATH", 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: invalid syntax
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 ChildProcess._handle.onexit (node:internal/child_process:305:5)
npm ERR! gyp ERR! System Windows_NT 10.0.22621
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\insti\OneDrive\Área de Trabalho\DEVELOP\standard-works-1\frontend-pro\node_modules\node-sass\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd C:\Users\insti\OneDrive\Área de Trabalho\DEVELOP\standard-works-1\frontend-pro\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! gyp verb
which
succeeded C:\Users\insti\AppData\Local\Programs\Python\Python37-32\python.exe C:\Users\insti\AppData\Local\Programs\Python\Python37-32\python.exe npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Command failed: C:\Users\insti\AppData\Local\Programs\Python\Python37-32\python.exe -c import sys; print "%s.%s.%s" % sys.version_info[:3]; npm ERR! gyp ERR! stack File "npm ERR! A complete log of this run can be found in: C:\Users\insti\AppData\Local\npm-cache_logs\2023-10-26T16_12_26_779Z-debug-0.log PS C:\Users\insti\OneDrive\Área de Trabalho\DEVELOP\standard-works-1\frontend-pro>