Comments (5)
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.
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.
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.
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.
It's working perfect now, thank you!
from npm-check.
Related Issues (20)
- [v6.0.1] NPM reports moderate issues in dependencies
- bug(pnpm): devDependencies arenβt updated if pnpm package manager HOT 1
- FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
- CLI option for PNPM
- Update `package-json` to 7 HOT 2
- Support package alias
- bundled module having npm-check as dependency using ncc is throwing Error: Cannot find module '/Users/username/Home/Projects/project-name/dist/parser/coffee' while running
- Stale packages not detected if 'parent' node_modules already has the updated versions
- Updates fail because it uses `yarn` instead of `npm` HOT 6
- monorepo workspace/package is showing `NPM ERR! Registry error Package <Package_Name> could not be found`
- Tests failing HOT 1
- _css_loader@undefined
- Displays the change logs between versions
- Ignore outdated dependencies HOT 2
- Request for New Release of npm-check HOT 2
- npm-check incorrectly flags partial SCSS files as unused dependencies HOT 1
- When I run npm-check, I get an error saying '@ in JSON at position 3324'.
- Yarn 4 fails with --color=always
- is this package still maintained? HOT 1
- update depcheck version please
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npm-check.