GithubHelp home page GithubHelp logo

Comments (4)

MarekSalat avatar MarekSalat commented on August 25, 2024

but it seems like we do not need npm install anymore. I have to try this, but according to npm@5 changelog

Git dependencies support semver through user/repo#semver:^1.2.3 (#15308) (#15666) (@sankethkatta)

Git dependencies with prepare scripts will have their devDependencies installed, and npm install run in their directory before being packed.

from npm-git-install.

tad-lispy avatar tad-lispy commented on August 25, 2024

Hi, Marek!

As far as I understand with NPM 5 you should no longer need npm-git-install. See npm/npm#3055 (comment) . This package is a workaround for the linked issue, and according to NPM team it is fixed in version 5.

I have not try it yet myself, but basically it should be enough if you move your dependencies from gitDependencies section to standard dependencies (or devDependencies). Provided the dependencies have correctly set prepare script it should just work.

Please share your experience. I'm really interested :)

from npm-git-install.

MarekSalat avatar MarekSalat commented on August 25, 2024

Good news! It works :)
add script to your package "prepare": "npm run build",
remove npm-git-install, remove gitDeps and add normal dep "<package-name>": "https://github.com/<repo>#<commitish-ref>",

from npm-git-install.

tad-lispy avatar tad-lispy commented on August 25, 2024

Awesome! Closing in favour of #24 .

from npm-git-install.

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.