Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python2 should be mentioned as pre-requisite #65

Open
rohancragg opened this issue Dec 22, 2021 · 1 comment
Open

Python2 should be mentioned as pre-requisite #65

rohancragg opened this issue Dec 22, 2021 · 1 comment

Comments

@rohancragg
Copy link

rohancragg commented Dec 22, 2021

Trying to run vue-app after creating from template repo I am unable to run npm install without errors that suggest I need python2.exe in my PATH

I am able to resolve this by installing python 2.7 with using Scoop to install Python2 on Windows (note, I already had Python 3).

npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python2

and also

npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb `which` succeeded python C:\Users\rohan\scoop\apps\python\current\python.EXE
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: C:\Users\rohan\scoop\apps\python\current\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack   File "<string>", 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(...)?

and finally...

npm ERR! gyp ERR! System Windows_NT 10.0.22523
npm ERR! gyp ERR! command "C:\\Users\\rohan\\scoop\\apps\\nvs\\current\\nodejs\\node\\16.13.1\\x64\\node.exe" "C:\\Users\\rohan\\src\\github\\rohancragg\\my-static-web-app\\vue-app\\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\rohan\src\github\rohancragg\my-static-web-app\vue-app\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.13.1
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
@drmcclelland
Copy link

@rohancragg - Even after installing Python as you suggested, I still get the following error message from gyp:

npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************

This comes after an immense amount of logging related to downloading code / libs, extracting files from tarball node-v16.15.1, etc... I am unsure what the example is trying to accomplish, but it seems to be related to OpenSSL?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants