Giter Club home page Giter Club logo

Comments (9)

50Wliu avatar 50Wliu commented on June 16, 2024

Yeah, you have to have Python 2.7 installed - it's a requirement for node-gyp. Feel free to create a PR that updates the documentation!

from node-keytar.

iamdriz avatar iamdriz commented on June 16, 2024

@50Wliu Why does this require node-gyp? I thought that was only used to build node native add-ons not run them once they have been built. Or is it only required to pull it down from NPM and then you can use it without Python being needed.

from node-keytar.

50Wliu avatar 50Wliu commented on June 16, 2024

@iamdriz Correct. node-keytar contains native files, though, and in order to install keytar you'll need to build those native files which requires node-gyp.

from node-keytar.

iamdriz avatar iamdriz commented on June 16, 2024

@50Wliu So once I've got the module in my app I won't need Python on the machine I run the app on?

from node-keytar.

50Wliu avatar 50Wliu commented on June 16, 2024

I'm pretty sure you don't.

from node-keytar.

iamdriz avatar iamdriz commented on June 16, 2024

@50Wliu Installed Python and looked to be working when I tried to install the module again, but then it failed. Am I missing something else?

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

H:\>c:

C:\>cd C:\AVTech\_storage

C:\AVTech\_storage>npm install keytar
-
> [email protected] install C:\AVTech\_storage\node_modules\keytar
> node-gyp rebuild


C:\AVTech\_storage\node_modules\keytar>if not defined npm_config_node_gyp (node
"C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\n
ode-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\AVTech\_storage\node_modules\keytar\build\keytar.vcxproj(20,3): error MSB401
9: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm
 that the path in the <Import> declaration is correct, and that the file exists
 on disk.
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:200:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\AVTech\_storage\node_modules\keytar
gyp ERR! node -v v4.0.0
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "keytar"
npm ERR! node v4.0.0
npm ERR! npm  v2.14.2
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the keytar package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls keytar
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\AVTech\_storage\npm-debug.log

C:\AVTech\_storage>

from node-keytar.

iamdriz avatar iamdriz commented on June 16, 2024

@50Wliu Turns out you also need to install Visual Studio

from node-keytar.

50Wliu avatar 50Wliu commented on June 16, 2024

@iamdriz Sorry, I didn't see your other comment :(.
The requirements for running node-gyp are here: https://github.com/nodejs/node-gyp#installation (just skip to the Windows section).

from node-keytar.

ankur-sardar avatar ankur-sardar commented on June 16, 2024

Any solution for your error? @50Wliu . I have installed VS15, still showing the same error

from node-keytar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.