Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Issue with 6.0.1 and node-gyp on Windows #297

@keithslater

Description

@keithslater

Description

Having issues getting 6.0.1 to install in electron 9.1.1 on Windows 10. I've tried a lot of different versions of python and windows build tools. The end result is always something like:

c:\users\keithslater\documents\code\desktop-application\node_modules\keytar\src\async.cc(4): fatal error C1083: Cannot open include file: 'napi.h': No such file or directory [C:\Users\keithslater\Documents\CODE\desktop-application\node_modules\keytar\build\keytar.vcxproj]

Currently when it runs it is using this setup

gyp info using node@12.18.2 | win32 | x64
gyp info find Python using Python version 2.7.15 found at "C:\Users\keithslater\.windows-build-tools\python27\python.exe"
gyp info find VS using VS2017 (15.9.28307.1216) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"

But I've also tried python 3 and different versions of VS build tools (with different components enabled). I'm not sure why it uses that version of node-gyp, I've tried to force it to use newer versions but it doesn't seem to want to.

Steps to Reproduce

  1. Install keytar 6.0.1 on Windows
  2. Run yarn install

No issues with 5.6.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions