can't run the template

Gravatar

when i run "yarn install" i have this error :

error C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\node-sass: Command failed. Exit code: 1 Command: node scripts/build.js Arguments: Directory: C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\node-sass Output: Building: C:\Tools\nodejs\node.exe C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\node-gyp\bin\node-gyp.js rebuild --verbose --libsassext= --libsasscflags= --libsassldflags= --libsasslibrary= gyp info it worked if it ends with ok gyp verb cli [ gyp verb cli 'C:\Tools\nodejs\node.exe', gyp verb cli 'C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\node-gyp\bin\node-gyp.js', gyp verb cli 'rebuild', gyp verb cli '--verbose', gyp verb cli '--libsassext=', gyp verb cli '--libsasscflags=', gyp verb cli '--libsassldflags=', gyp verb cli '--libsasslibrary=' gyp verb cli ] gyp info using [email protected] gyp info using [email protected] | win32 | x64 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 "python2" in the PATH gyp verb which failed Error: not found: python2 gyp verb which failed at getNotFoundError (C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:13:12) gyp verb which failed at F (C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:68:19) gyp verb which failed at E (C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:80:29) gyp verb which failed at C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:89:16 gyp verb which failed at C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\isexe\index.js:42:5 gyp verb which failed at C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\isexe\windows.js:36:5 gyp verb which failed at FSReqCallback.oncomplete (fs.js:183:21) gyp verb which failed python2 Error: not found: python2 gyp verb which failed at getNotFoundError (C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:13:12) gyp verb which failed at F (C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:68:19) gyp verb which failed at E (C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:80:29) gyp verb which failed at C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:89:16 gyp verb which failed at C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\isexe\index.js:42:5 gyp verb which failed at C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\isexe\windows.js:36:5 gyp verb which failed at FSReqCallback.oncomplete (fs.js:183:21) { gyp verb which failed code: 'ENOENT' gyp verb which failed } gyp verb check python checking for Python executable "python" in the PATH gyp verb which failed Error: not found: python gyp verb which failed at getNotFoundError (C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:13:12) gyp verb which failed at F (C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:68:19) gyp verb which failed at E (C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:80:29) gyp verb which failed at C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:89:16 gyp verb which failed at C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\isexe\index.js:42:5 gyp verb which failed at C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\isexe\windows.js:36:5 gyp verb which failed at FSReqCallback.oncomplete (fs.js:183:21) gyp verb which failed python Error: not found: python gyp verb which failed at getNotFoundError (C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:13:12) gyp verb which failed at F (C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:68:19) gyp verb which failed at E (C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:80:29) gyp verb which failed at C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\which\which.js:89:16 gyp verb which failed at C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\isexe\index.js:42:5 gyp verb which failed at C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\isexe\windows.js:36:5 gyp verb which failed at FSReqCallback.oncomplete (fs.js:183:21) { gyp verb which failed code: 'ENOENT' gyp verb which failed } gyp verb could not find "python". checking python launcher gyp verb could not find "python". guessing location gyp verb ensuring that file exists: C:\Python27\python.exe gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\node-gyp\lib\configure.js:484:19) gyp ERR! stack at PythonFinder. (C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\node-gyp\lib\configure.js:509:16) gyp ERR! stack at callback (C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\graceful-fs\polyfills.js:295:20) gyp ERR! stack at FSReqCallback.oncomplete (fs.js:183:21) gyp ERR! System WindowsNT 10.0.17763 gyp ERR! command "C:\Tools\nodejs\node.exe" "C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsassext=" "--libsasscflags=" "--libsassldflags=" "--libsasslibrary=" gyp ERR! cwd C:\Dev\SI de la DSI\tmp\flatlogic-sing-app-react\nodemodules\node-sass gyp ERR! node -v v14.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1

Gravatar

gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.

User profile image

Hi, [email protected]!

First, it looks like you need to install Python. See how to do it here.

Second, update the project from git, we just updated most packages and the project as a whole.

Best regards

Gravatar

Hello Friend,

The error you are encountering seems to be related to the absence of Python in your environment. The node-sass module, a dependency in your project, requires Python to build native bindings during installation.

Check the below code

gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable python support you can set the PYTHON env variable.

Run yarn install again after setting up Python and ensuring the PYTHON environment variable is correctly configured. This should help resolve the build issue with node-sass. If you encounter any other issues or if this doesn't solve the problem, feel free to provide additional details for further assistance

Python Support

Cookie Consent

By continuing to browse or by clicking 'OK', you agree to the storing of cookies on your device to enhance your site experience and for analytical purposes. To learn more about how we use cookies, please see our cookies policy.