Giter Site home page Giter Site logo

Comments (4)

jjrv avatar jjrv commented on May 14, 2024

autogypi is listed in devDependencies in nbind's package.json, and dependencies in the example. So it should be installed with the steps:

npm install
npm test

There, npm install when run inside the git cloned repo or the example, should install it. Maybe something silently failed when you ran it with older npm installed, or you didn't notice an error message and continued? It sounds like the correct fix is to set the minimum required npm version in package.json so it would fail more spectacularly before even getting close to installing autogypi. I'll need to do the same to autogypi's package.json too. Thanks for reporting.

from nbind.

jjrv avatar jjrv commented on May 14, 2024

Another possible fix is to rename autolink and publish it in the global npm namespace instead of the @lib scope. Problem is that the "autolink" name is taken and I don't want to reserve any other name for it either, since it's a utility package only ever meant to be used by autodts and autogypi. Since it has no wider utility, I think it belongs in a scope, but older npm versions lacking scope support will then fail to install nbind correctly for such a minor reason... What do you think is the best option here?

from nbind.

brodybits avatar brodybits commented on May 14, 2024

I had already upgraded npm before following the Example section, still had to install autogypi globally and run it manually before I could build it using npm install. But if I change "prepublish" to "install" in the sample package.json, uninstall my autogypi, and remove the artifacts (auto.gypi, build, and node_modules), then I am able to build it using npm install.

If you want to work with older npm versions, you could start all of your utility packages with a prefix that you do not expect anyone will (or should) use. But I we suspect we should be able to expect the users to update npm (or start using newer npm on new system installations) over time.

from nbind.

jjrv avatar jjrv commented on May 14, 2024

It seems prepublish was wrong in this case, I replaced it with install and added notes about updating npm. Thanks for the help.

from nbind.

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.