jhipster - gyp verb `which` failed Error: not found: python2

leventunver

Below is the error that I get, when I try to generate a new project with JHipster:

gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:\Program Files\Python36\python.EXE
gyp verb check python version `C:\Program Files\Python36\python.EXE -c "import platform; print(platform.python_version());"` returned: "3.6.4\r\n"
gyp verb could not find "C:\Program Files\Python36\python.EXE". checking python launcher
gyp verb could not find "C:\Program Files\Python36\python.EXE". 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 "C:\Program Files\Python36\python.EXE", you can set the PYTHON env variable.

The rest is the stacktrace. The weird thing is I do have python installed and the environment variable is also set. My python version is "Python 3.6.4". Should I run it in Python 2? Is that the case?

Gaël Marziou

Yes node-gyp requires Python 2.7, so you could try the answers to this question.

Alternatively, if you encounter this problem, it is probably due to node-sass and if you did not select Sass in JHipster options, you don't need it but still you get it because it's a transitive dependency from Angular, you can skip it by setting environment variables:

set SKIP_SASS_BINARY_DOWNLOAD_FOR_CI=true
set SKIP_NODE_SASS_TESTS=true

Another alternative is to use JHipster devbox.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Which key failed in Python KeyError?

determining which verb to use for method names in Java

Spring boot app failed to start with error "Application required a single bean, but 2 were found"

GYP ERR! build error. stack Error: 'make' failed with exit code 2

node gyp error TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified

npm failed to install time with make not found error

JHipster Spring startup failed with Logback configuration error

Verb tense conversion in Python

node-gyp rebuild - Error: `gyp` failed with exit code: 1

Error on installing angular/cli - not found: python2

EXEC:EXEC(0,0): Error : not found: python2

Error: package or namespace load failed, object ... not found

Jhipster Create or Edit a Entity Not Found Error

Error: organization or project not found :app:bundleReleaseJsAndAssets FAILED

Jhipster 5.7 microservice failed to start on windows with error CreateProcess error=206, The filename or extension is too long

google dev_appserver throws error 'python2: command not found' after upgrade to python 3.7

cocoapods setup failed with command not found error

Error: `gyp` failed with exit code: 1 while installing jugglingdb-postgres

Node-gyp cannot compile a nodejs extension ('fatal error, thread' file not found)

Bot creation failed with error: Not Found

Command Python2 not found

NPM Install Fails on GYP MAKE: Error: `make` failed with exit code: 2

Configuring serial port with Windows API: CreateFile failed with error 2 (ERROR_FILE_NOT_FOUND)

Webpacker: Compilation failed: error Command "webpack" not found

node-pre-gyp: not found --fallback to build error while installing bcrypt

Pipeline failed caused by npm command not found error

Which version of JHipster is supported by the JHipster Blueprint generator?

error: failed to solve: snapshot does not exist: not found

npm ERR! gyp verb check python checking for Python executable "python3" in the PATH

TOP Ranking

  1. 1

    Failed to listen on localhost:8000 (reason: Cannot assign requested address)

  2. 2

    Loopback Error: connect ECONNREFUSED 127.0.0.1:3306 (MAMP)

  3. 3

    How to import an asset in swift using Bundle.main.path() in a react-native native module

  4. 4

    pump.io port in URL

  5. 5

    Compiler error CS0246 (type or namespace not found) on using Ninject in ASP.NET vNext

  6. 6

    BigQuery - concatenate ignoring NULL

  7. 7

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  8. 8

    ggplotly no applicable method for 'plotly_build' applied to an object of class "NULL" if statements

  9. 9

    Spring Boot JPA PostgreSQL Web App - Internal Authentication Error

  10. 10

    How to remove the extra space from right in a webview?

  11. 11

    java.lang.NullPointerException: Cannot read the array length because "<local3>" is null

  12. 12

    Jquery different data trapped from direct mousedown event and simulation via $(this).trigger('mousedown');

  13. 13

    flutter: dropdown item programmatically unselect problem

  14. 14

    How to use merge windows unallocated space into Ubuntu using GParted?

  15. 15

    Change dd-mm-yyyy date format of dataframe date column to yyyy-mm-dd

  16. 16

    Nuget add packages gives access denied errors

  17. 17

    Svchost high CPU from Microsoft.BingWeather app errors

  18. 18

    Can't pre-populate phone number and message body in SMS link on iPhones when SMS app is not running in the background

  19. 19

    12.04.3--- Dconf Editor won't show com>canonical>unity option

  20. 20

    Any way to remove trailing whitespace *FOR EDITED* lines in Eclipse [for Java]?

  21. 21

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class

HotTag

Archive