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

Still need Python2 to run node-gyp v5.0.3 #1977

Closed
HanqingTony opened this issue Nov 24, 2019 · 36 comments
Closed

Still need Python2 to run node-gyp v5.0.3 #1977

HanqingTony opened this issue Nov 24, 2019 · 36 comments
Labels
ERR! node-gyp -v < v10.x.x npm install -g npm Node Sass --> Dart Sass https://github.com/sass/node-sass/issues/2952

Comments

@HanqingTony
Copy link

HanqingTony commented Nov 24, 2019

Still need python2, i don't know why. i installed node-gyp with python 3.73

C:\Windows\system32> npm install -g node-gyp
C:\Users\81810\AppData\Roaming\npm\node-gyp -> C:\Users\81810\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js
+ node-gyp@6.0.1
updated 1 package in 9.504s
PS C:\Windows\system32> npm install -g ffi

> ref@1.3.5 install C:\Users\81810\AppData\Roaming\npm\node_modules\ffi\node_modules\ref
> node-gyp rebuild


C:\Users\81810\AppData\Roaming\npm\node_modules\ffi\node_modules\ref>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - executable path is "C:\Program Files\Python37\python.exe"
gyp ERR! find Python - version is "3.7.3"
gyp ERR! find Python - version is 3.7.3 - should be >=2.6.0 <3.0.0
gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if the py launcher can be used to find Python 2
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python checking if Python is C:\Python27\python.exe
gyp ERR! find Python - "C:\Python27\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Python37\python.exe
gyp ERR! find Python - "C:\Python37\python.exe" could not be run
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python 2.7.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
gyp ERR! find Python   (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python   npm config set python "C:\Path\To\python.exe"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack     at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:303:47)
gyp ERR! stack     at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:132:21)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:221:16)
gyp ERR! stack     at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:267:16)
gyp ERR! stack     at exithandler (child_process.js:302:5)
gyp ERR! stack     at ChildProcess.errorhandler (child_process.js:314:5)
gyp ERR! stack     at ChildProcess.emit (events.js:209:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
gyp ERR! stack     at onErrorNT (internal/child_process.js:456:16)
gyp ERR! stack     at processTicksAndRejections (internal/process/task_queues.js:80:21)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\81810\AppData\Roaming\npm\node_modules\ffi\node_modules\ref
gyp ERR! node -v v12.10.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ref@1.3.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ref@1.3.5 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\81810\AppData\Roaming\npm-cache\_logs\2019-11-24T23_02_43_511Z-debug.log
PS C:\Windows\system32>
@cclauss
Copy link
Contributor

cclauss commented Nov 25, 2019

gyp ERR! node -v v12.10.0
gyp ERR! node-gyp -v v5.0.3

C:\Users\81810\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js is node-gyp@6.0.1
C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js is node-gyp@5.0.3

@joaocgreis
Copy link
Member

@HanqingTony please update npm:

npm install -g npm

@johnhoj
Copy link

johnhoj commented Dec 2, 2019

Hi there,

I had a similar issue. I upgraded to OSX Catalina. Then when doing node-gyp build I got the error as in below. I realised Catalina does not take the old 32 bit python previously installed, so I installed Python3. However, even after changing the alias for python, verifying PATH and even enforcing node-gyp build --python=(python3path), it seemed as if node-gyp was still looking for python v2.

The solution was to reinstall python2 for 64 bits.

% node-gyp build
gyp info it worked if it ends with ok
gyp info using node-gyp@6.0.1
gyp info using node@10.16.2 | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
LIBTOOL-STATIC Release/scrypt_wrapper.a
env: python: Bad CPU type in executable
make: *** [Release/scrypt_wrapper.a] Error 126
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/john/.nvm/versions/node/v10.16.2/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command "/Users/john/.nvm/versions/node/v10.16.2/bin/node" "/Users/john/.nvm/versions/node/v10.16.2/bin/node-gyp" "build"
gyp ERR! cwd /Users/john/dev/eth-test-embark/node-scrypt
gyp ERR! node -v v10.16.2
gyp ERR! node-gyp -v v6.0.1
gyp ERR! not ok

@codler
Copy link

codler commented Dec 5, 2019

I have the same issue

@Paulsky
Copy link

Paulsky commented Dec 6, 2019

Please look at this article from 2019: https://spin.atomicobject.com/2019/03/27/node-gyp-windows/

On Windows, you have to use Python 2.7 and Microsoft Visual Studio 2015:

  • Python 2.7: 'Python 2.7.0 was released on July 3rd, 2010.'
  • Microsoft Visual Studio 2015: 'July 20, 2015: Visual Studio 2015 (“VS 2015”)'

Latest version December 6, 2019; Python 3.8 (October 14th, 2019), Visual Studio 2019 (April 2, 2019)............

@rvagg
Copy link
Member

rvagg commented Dec 6, 2019

please stop reading old articles and assuming they indicate the current state of a piece of software, the date is even in the URL and it's 9 months old. see the node-gyp README for current state and if you have an old version, update it and try again, same with npm which can be updated with npm i npm -g and will bring in a newer version of node-gyp.

@Paulsky
Copy link

Paulsky commented Dec 6, 2019

9 months ago is an old article in your opinion? Of course I followed the node-gyp README. Which did not fix my environment. Here is a more recent discussion (with a solution that worked for me); https://stackoverflow.com/a/57763427/4234891

@otoomey
Copy link

otoomey commented Dec 18, 2019

You do not need Python 2.7 in order to run node-gyp. Python 3 has been supported since version 5.0.5. If you have verified that your issue is python related, as in that node-gyp is trying to run a script which contains errors according to the python 3 interpreter, then try the following:

  1. Update your global node-gyp install. npm install -g node-gyp
  2. Update your npm install. npm install -g npm

Both modules are separate, npm will have its own copy of node-gyp. If you are trying to link a local package, for instance, npm will use its own copy of node-gyp. However, if you run node-gyp from the command line, it will use the other.

Of course, all of this is irrelevant if you don't have a valid installation setup. You will need build tools, as the previously linked articles mention. Windows voodoo dictates that you will probably have to mess around in order to get everything setup on the runtime side. However, you do not need python 2.7.

@HanqingTony
Copy link
Author

HanqingTony commented Dec 21, 2019

Please look at this article from 2019: https://spin.atomicobject.com/2019/03/27/node-gyp-windows/

On Windows, you have to use Python 2.7 and Microsoft Visual Studio 2015:

  • Python 2.7: 'Python 2.7.0 was released on July 3rd, 2010.'
  • Microsoft Visual Studio 2015: 'July 20, 2015: Visual Studio 2015 (“VS 2015”)'

Latest version December 6, 2019; Python 3.8 (October 14th, 2019), Visual Studio 2019 (April 2, 2019)............

Previously I had started an Issue to suggested node-gyp should turn to python3. Couple of weeks ago, one of the contributor of node-gyp replied to me, saying that node-gyp now support pure python3. So I think there was no doubt that articles about python2 would be out of date

@parkertomatoes
Copy link

I ran into this on Win10. It was a pretty crummy experience. The Node v13 installer tried to install some node-gyp dependencies + Chocolatey, opened a command prompt which flashed an error message, then the window flashed away with no further error.

When I tried to npm install for an application, it broke when the node-gyp build for node-sass trying to find python2 and defaulted to python.exe which was Python 3.8, and broke on a print statement. I worked around it by installing Python 2.7, and creating a batch file called python2.bat with the following contents and adding its location to my PATH variable:

py -2 %*

BUT, because the Node installer failed to install all those dependencies for node-gyp, I also had to install VS build tool 2015 (v140) and 2017 (v141) and launch npm install from my VS build prompt to get it all to work correctly. I hope this silly workaround helps someone else though.

@cclauss
Copy link
Contributor

cclauss commented Dec 23, 2019

Python 3.8 [...] broke on a print statement.

You are using a version of node or node-gyp that does not support Python 3. This was fixed a long time ago.

@richardlau
Copy link
Member

richardlau commented Dec 23, 2019

Python 3.8 [...] broke on a print statement.

You are using a version of node or node-gyp that does not support Python 3. This was fixed a long time ago.

Looks like node-sass has a direct dependency on the outdated node-gyp 3.

https://github.com/sass/node-sass/blob/c6f2e5a1643dd00105b63a638756dc99fc33c3e4/package.json#L67

@parkertomatoes
Copy link

@cclauss You're right, it's an issue with a dependency and different than the one in the bug report. It's unfortunate that these errors appear as node-gyp errors. Thanks for the correction and thanks @richardlau for pointing out the potential issue with node-gyp. I'll file a bug report there.

@codler
Copy link

codler commented Dec 24, 2019

sass/node-sass#2801

@cclauss
Copy link
Contributor

cclauss commented Jan 1, 2020

End of Life of Python 2 is TODAY. Can this issue be closed?

@rvagg
Copy link
Member

rvagg commented Jan 1, 2020

I'm happy for you to make that call @cclauss, and on most things Python.

@HeskethGD
Copy link

Even now when I try to install Current: node 13.5.0 on Windows it comes up with this saying it requires Python 2

Screenshot (2)

@HeskethGD
Copy link

HeskethGD commented Jan 5, 2020

please stop reading old articles and assuming they indicate the current state of a piece of software, the date is even in the URL and it's 9 months old. see the node-gyp README for current state and if you have an old version, update it and try again, same with npm which can be updated with npm i npm -g and will bring in a newer version of node-gyp.

If you consult node-gyp README here Option 1 directs you to the windows-build-tools page which says "If not already installed, it will also install Python 2.7, configuring your machine and npm appropriately."

Is it possible to avoid Python 2 or not?

@cclauss
Copy link
Contributor

cclauss commented Jan 5, 2020

Please follow option 2 to use Python 3.

@HeskethGD
Copy link

Please follow option 2 to use Python 3.

Under Option 2 it says "If the above steps didn't work for you, please visit Microsoft's Node.js Guidelines for Windows additional tips."

At that link it says under Prerequisites "Install Python 2.7 (v3.x.x is not supported), and run npm config set python python2.7"

I don't want to install Python 2 as I have Python 3 and I don't want to mess that up. I am trying to install Node.js so that I can run ESlint and Prettier in Visual Studio Code.

@cclauss
Copy link
Contributor

cclauss commented Jan 5, 2020

Which of the steps above don’t work for you?

@HeskethGD
Copy link

Which of the steps above don’t work for you?

Admittedly I have not yet tried the steps in Option 2 because I am still doing some research and don't want to mess things up.

Am I correct in thinking that if I am to get this to work, I need either Visual Studio Build Tools or Visual Studio 2017 Community? I am in a team of 8 and so if we all tried to use this set up we would require an enterprise license for either as discussed here and here. That license would be around $250 a month. Visual Studio Code, Python or Node.js do not require such a license themselves so this seems a bit odd.

Can I get away with not installing the additional bits for node to compile npm modules from C/C++? How can I find which modules require this?

@gengjiawen
Copy link
Member

Even now when I try to install Current: node 13.5.0 on Windows it comes up with this saying it requires Python 2

Screenshot (2)

Fixed via nodejs/node#31221.

@HeskethGD
Copy link

Which of the steps above don’t work for you?

Admittedly I have not yet tried the steps in Option 2 because I am still doing some research and don't want to mess things up.

Am I correct in thinking that if I am to get this to work, I need either Visual Studio Build Tools or Visual Studio 2017 Community? I am in a team of 8 and so if we all tried to use this set up we would require an enterprise license for either as discussed here and here. That license would be around $250 a month. Visual Studio Code, Python or Node.js do not require such a license themselves so this seems a bit odd.

Can I get away with not installing the additional bits for node to compile npm modules from C/C++? How can I find which modules require this?

To answer my own question, I installed Node using the setup wizard and then got ESLint and Prettier to work in Visual Studio Code without installing the support for native modules (i.e. Python 2, Visual Studio Build Tools or Visual Studio). Thanks

@cclauss
Copy link
Contributor

cclauss commented Mar 25, 2020

Closing. gyp ERR! node-gyp -v v5.0.3 only supported legacy Python.

Python 3 is now supported in both node-gyp v5 and v6
https://github.com/nodejs/node-gyp/blob/master/CHANGELOG.md

@cclauss cclauss closed this as completed Mar 25, 2020
@prachisawarkar
Copy link

Is node-gys still required only python 2.7 ?

@cclauss
Copy link
Contributor

cclauss commented May 16, 2020

This issue is closed. https://github.com/nodejs/node-gyp#on-unix

Python 2 died on 1/1/2020.

@cmbkla
Copy link

cmbkla commented Jul 10, 2020

I just tried to npm i on a project that was Angular 8, moving to 9. Could not continue until I added windows-build-tools, which installed Python 2.

@Zunnurayni
Copy link

C:\Users\Wakilie\Downloads\Boy>npm install

grpc@1.22.2 install C:\Users\Wakilie\Downloads\Boy\node_modules\grpc
node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.22.2/node-v83-win32-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for grpc@1.22.2 and node@14.0.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if the py launcher can be used to find Python 2
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python checking if Python is C:\Python27\python.exe
gyp ERR! find Python - "C:\Python27\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Python37\python.exe
gyp ERR! find Python - "C:\Python37\python.exe" could not be run
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
gyp ERR! find Python (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47)
gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21)
gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16)
gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16)
gyp ERR! stack at exithandler (child_process.js:310:5)
gyp ERR! stack at ChildProcess.errorhandler (child_process.js:322:5)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
gyp ERR! stack at onErrorNT (internal/child_process.js:468:16)
gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83"
gyp ERR! cwd C:\Users\Wakilie\Downloads\Boy\node_modules\grpc
gyp ERR! node -v v14.0.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1051:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
node-pre-gyp ERR! System Windows_NT 10.0.18363
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd C:\Users\Wakilie\Downloads\Boy\node_modules\grpc
node-pre-gyp ERR! node -v v14.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.22.2 install: node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.22.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Wakilie\AppData\Roaming\npm-cache_logs\2020-07-10T18_34_12_204Z-debug.log

C:\Users\Wakilie\Downloads\Boy>npm install -g npm
C:\Users\Wakilie\AppData\Roaming\npm\npm -> C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
C:\Users\Wakilie\AppData\Roaming\npm\npx -> C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\bin\npx-cli.js

  • npm@6.14.6
    added 435 packages from 877 contributors in 75.236s

C:\Users\Wakilie\Downloads\Boy>npm install

grpc@1.22.2 install C:\Users\Wakilie\Downloads\Boy\node_modules\grpc
node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.22.2/node-v83-win32-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for grpc@1.22.2 and node@14.0.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if the py launcher can be used to find Python 2
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python checking if Python is C:\Python27\python.exe
gyp ERR! find Python - "C:\Python27\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Python37\python.exe
gyp ERR! find Python - "C:\Python37\python.exe" could not be run
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
gyp ERR! find Python (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack at PythonFinder.fail (C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47)
gyp ERR! stack at PythonFinder.runChecks (C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21)
gyp ERR! stack at PythonFinder. (C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16)
gyp ERR! stack at PythonFinder.execFileCallback (C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16)
gyp ERR! stack at exithandler (child_process.js:310:5)
gyp ERR! stack at ChildProcess.errorhandler (child_process.js:322:5)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
gyp ERR! stack at onErrorNT (internal/child_process.js:468:16)
gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83"
gyp ERR! cwd C:\Users\Wakilie\Downloads\Boy\node_modules\grpc
gyp ERR! node -v v14.0.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1051:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
node-pre-gyp ERR! System Windows_NT 10.0.18363
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd C:\Users\Wakilie\Downloads\Boy\node_modules\grpc
node-pre-gyp ERR! node -v v14.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.22.2 install: node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.22.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Wakilie\AppData\Roaming\np

@cclauss
Copy link
Contributor

cclauss commented Jul 10, 2020

@Zunnurayni Please install Python from the Microsoft store and then try again.

@fyllepo
Copy link

fyllepo commented Jul 27, 2020

If it's an option for you, backup your package-lock.json, remove it, and then try an install again.

@icatalyse
Copy link

If it's an option for you, backup your package-lock.json, remove it, and then try an install again.

good day, i have similar issue and have tried removing the "package-lock.json" file but it still didn't work... please do you have any other suggestions? thanks

@icatalyse
Copy link

icatalyse commented Jul 28, 2020

C:\Users\Wakilie\Downloads\Boy>npm install

grpc@1.22.2 install C:\Users\Wakilie\Downloads\Boy\node_modules\grpc
node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.22.2/node-v83-win32-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for grpc@1.22.2 and node@14.0.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if the py launcher can be used to find Python 2
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python checking if Python is C:\Python27\python.exe
gyp ERR! find Python - "C:\Python27\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Python37\python.exe
gyp ERR! find Python - "C:\Python37\python.exe" could not be run
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
gyp ERR! find Python (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47)
gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21)
gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16)
gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16)
gyp ERR! stack at exithandler (child_process.js:310:5)
gyp ERR! stack at ChildProcess.errorhandler (child_process.js:322:5)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
gyp ERR! stack at onErrorNT (internal/child_process.js:468:16)
gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83"
gyp ERR! cwd C:\Users\Wakilie\Downloads\Boy\node_modules\grpc
gyp ERR! node -v v14.0.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1051:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
node-pre-gyp ERR! System Windows_NT 10.0.18363
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd C:\Users\Wakilie\Downloads\Boy\node_modules\grpc
node-pre-gyp ERR! node -v v14.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.22.2 install: node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.22.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Wakilie\AppData\Roaming\npm-cache_logs\2020-07-10T18_34_12_204Z-debug.log

C:\Users\Wakilie\Downloads\Boy>npm install -g npm
C:\Users\Wakilie\AppData\Roaming\npm\npm -> C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
C:\Users\Wakilie\AppData\Roaming\npm\npx -> C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\bin\npx-cli.js

  • npm@6.14.6
    added 435 packages from 877 contributors in 75.236s

C:\Users\Wakilie\Downloads\Boy>npm install

grpc@1.22.2 install C:\Users\Wakilie\Downloads\Boy\node_modules\grpc
node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.22.2/node-v83-win32-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for grpc@1.22.2 and node@14.0.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if the py launcher can be used to find Python 2
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python checking if Python is C:\Python27\python.exe
gyp ERR! find Python - "C:\Python27\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Python37\python.exe
gyp ERR! find Python - "C:\Python37\python.exe" could not be run
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
gyp ERR! find Python (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack at PythonFinder.fail (C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47)
gyp ERR! stack at PythonFinder.runChecks (C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21)
gyp ERR! stack at PythonFinder. (C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16)
gyp ERR! stack at PythonFinder.execFileCallback (C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16)
gyp ERR! stack at exithandler (child_process.js:310:5)
gyp ERR! stack at ChildProcess.errorhandler (child_process.js:322:5)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
gyp ERR! stack at onErrorNT (internal/child_process.js:468:16)
gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83"
gyp ERR! cwd C:\Users\Wakilie\Downloads\Boy\node_modules\grpc
gyp ERR! node -v v14.0.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1051:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
node-pre-gyp ERR! System Windows_NT 10.0.18363
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd C:\Users\Wakilie\Downloads\Boy\node_modules\grpc
node-pre-gyp ERR! node -v v14.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Wakilie\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\Wakilie\Downloads\Boy\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.22.2 install: node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.22.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Wakilie\AppData\Roaming\np

HAD SIMILAR ISSUES BUT GOT THE SOLUTION:

  1. first make sure you have python installed. (if you don't, install your version from this link https://www.python.org/downloads/release/python-385/ )
  2. npm install --save bcrypt-nodejs
  3. npm uninstall --save bcrypt
  4. npm install
    I HOPE THIS WORKS FOR YOU.
    THANKS TO https://github.com/conor909

@cclauss
Copy link
Contributor

cclauss commented Jul 28, 2020

gyp ERR! node-gyp -v v5.1.0

Current release is v7.0.0

@yoderj
Copy link

yoderj commented May 22, 2021

This bug still lingers in 2021 -- because old versions of node-gyp linger. On my system, these steps resolved the problem (don't know which one was needed)

From administrator prompt on Windows:

npm install -g node-gyp
npm install -g npm
yarn install

All of these were run from the project folder containing the yarn configuration file and from the same adminstrative prompt.

But then yarn fails.

@cclauss
Copy link
Contributor

cclauss commented May 23, 2021

@nodejs nodejs locked as resolved and limited conversation to collaborators May 23, 2021
@cclauss cclauss changed the title Still need Python2 Still need Python2 to run node-gyp v5.0.3 Jun 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ERR! node-gyp -v < v10.x.x npm install -g npm Node Sass --> Dart Sass https://github.com/sass/node-sass/issues/2952
Projects
None yet
Development

Successfully merging a pull request may close this issue.