Coder Social home page Coder Social logo

Comments (2)

mephitrpg avatar mephitrpg commented on May 29, 2024

Now npm install sweph works.
This is what I installed:

  • node 21.6.2
  • npm 10.4.0
  • Build Tools for Visual Studio 2022 with Windows 11 SDK (tutorial: https://github.com/bycloudai/InstallVSBuildToolsWindows?tab=readme-ov-file). Not clear why someone says to select Windows 10 SDK instead of Windows 11 SDK.
  • add C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin to System Variable "PATH"
  • Python 3.12.2
  • reboot

from sweph.

timotejroiko avatar timotejroiko commented on May 29, 2024

hey,

the issue is with node-gyp, which does the compilation step.

When using a node version lower that 21.3 (in your case it was node 16), only python 3.11 works.

Python 3.12 had a breaking change where they removed a component that was used by node-gyp. An update to fix it was released only in node v21.3+ i think.

And as far as i know, node-gyp still doesnt support windows 11 SDK, thats why windows 10 SDK is needed.

from sweph.

Related Issues (18)

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.