Giter Site home page Giter Site logo

Comments (7)

abondoa avatar abondoa commented on July 4, 2024 6

@julianilsson @hardik-shah-28 did you guys try to install node-gyp and windows-build-tools globally?

npm install --global node-gyp
npm install --global --production windows-build-tools

At least that did the trick for me. If you are not on windows you might need something else than windows-build-tools, but have not tried myself.

from node-keytar.

50Wliu avatar 50Wliu commented on July 4, 2024

From the looks of it your Python executable wasn't found: Error: Can't find Python executable "C:\Users\AlexBondo\AppData\Local\Programs\Python\Python35-32\python.exe", you can set the PYTHON env variable..

from node-keytar.

abondoa avatar abondoa commented on July 4, 2024

Tried executing "C:\Users\AlexBondo\AppData\Local\Programs\Python\Python35-32\python.exe" in terminal and it started python as expected - also before installing node-gyp and windows-build-tools. Sorry for not specifying that originally.

from node-keytar.

50Wliu avatar 50Wliu commented on July 4, 2024

Ok, and what if you use python2? I believe node-gyp is only compatible with python 2.

from node-keytar.

julianilsson avatar julianilsson commented on July 4, 2024

I ran into the exact same issue and I'm using python 2.7.10. @abondoa did you find a solution to the problem?

from node-keytar.

hardik-shah-28 avatar hardik-shah-28 commented on July 4, 2024

Hi @abondoa I am facing following problem can you please help me out. initially it was showing python problem you mentioned above but I was able to solve that but then I am getting this error.

C:\sls-azure-example>npm install

[email protected] install C:\sls-azure-example\node_modules\keytar
node-gyp rebuild

C:\sls-azure-example\node_modules\keytar>if not defined npm_config_node_gyp (node "C:\Users\hshah\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-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:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error
MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK vers
ion in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\sls-azure-ex
ample\node_modules\keytar\build\keytar.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\hshah\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\hshah\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\sls-azure-example\node_modules\keytar
gyp ERR! node -v v6.11.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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\hshah\AppData\Roaming\npm-cache_logs\2017-06-14T21_29_54_143Z-debug.log

C:\sls-azure-example>npm install

[email protected] install C:\sls-azure-example\node_modules\keytar
node-gyp rebuild

C:\sls-azure-example\node_modules\keytar>if not defined npm_config_node_gyp (node "C:\Users\hshah\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-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:\sls-azure-example\node_modules\keytar\build\keytar.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.
Cpp.Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exist
s 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:\Users\hshah\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\hshah\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\sls-azure-example\node_modules\keytar
gyp ERR! node -v v6.11.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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\hshah\AppData\Roaming\npm-cache_logs\2017-06-14T21_43_02_826Z-debug.log

from node-keytar.

hardik-shah-28 avatar hardik-shah-28 commented on July 4, 2024

sorry it got printed twice

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.