Git Product home page Git Product logo

Comments (5)

dylang avatar dylang commented on May 18, 2024

The bug is in the module npm-check uses to check for unused modules. Use --skip-unused (or -s) to avoid it.

Can you tell me more about the project? Is it open source? Are you using require statements in non-Node code, such as using browserify, or using an ES6 transplier? There's nothing wrong with these, I just want an idea of what to look for to fix this.

from npm-check.

madeinjam avatar madeinjam commented on May 18, 2024

Thanks for the response, the project is not open source but one peculiar thing is that it has private git repositories as modules:

"dependencies": {
    "async": "^0.9.0",
    "body-parser": "^1.12.0",
    "cors": "^2.5.3",
    "express": "^4.11.2",
    "lodash": "^3.3.0",
    "q": "^1.1.2",
    "private-module": "git+ssh://[email protected]:user/git-repo.git#v0.1.0",
    "private-module2": "git+ssh://[email protected]:user/git-repo2.git#v0.1.0",
    "private-module3": "git+ssh://[email protected]:user/git-repo3.git#v0.1.0",
    "private-module4": "git+ssh://[email protected]:user/git-repo4.git#v0.1.0"
  },
  "devDependencies": {
    "airbrake": "^0.3.8",
    "blanket": "^1.1.6",
    "chai": "^2.0.0",
    "grunt": "^0.4.5",
    "grunt-cli": "^0.1.13",
    "mocha": "^2.1.0",
    "mockery": "git+ssh://[email protected]:jamc/mockery.git",
    "nock": "^0.59.1",
    "nock-exec": "^0.1.0",
    "redis": "^0.12.1",
    "redis-mock": "^0.4.4",
    "request": "^2.53.0",
    "sinon": "^1.12.2"
  }

In other projects, npm-check just shows an error saying that could not find these modules, it's only in this particular project where it crashes.

In the json above are the exact modules that i use, i just removed the privates ones (13 private modules).

Let me know if i can help on this.

Cheers!

from npm-check.

dylang avatar dylang commented on May 18, 2024

I've made a PR for depcheck that should fix this: depcheck/depcheck#20

I don't think the problem is related to using modules off github.

You can run your own npm repo, it can make version mangling much easier because you can use semver. If setting up couchdb seems daunting, I was playing with https://github.com/rlidwka/sinopia over the weekend and it was easy to configure and run.

from npm-check.

dylang avatar dylang commented on May 18, 2024

My PR was merged, if you npm -g i npm-check you should get the new version with this fix. I'm going to close this ticket but let me know if you still have the problem and I'll re-open.

from npm-check.

madeinjam avatar madeinjam commented on May 18, 2024

It's working perfect now, thank you!

from npm-check.

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.