dylang / npm-check

Check for outdated, incorrect, and unused dependencies.
https://www.npmjs.com/package/npm-check
MIT License
6.58k stars 236 forks source link

npm-check@4.1.2 not working for large package.json #63

Closed joeycozza closed 8 years ago

joeycozza commented 8 years ago

After upgrading to npm-check@4.1.2 I get this error after a while

grow(moduleUpdating) ✗: npm-check FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory [1] 47613 abort npm-check

npm-check@4.1.1 work just fine.

My environment: node version - v0.10.38 npm version - 2.12.0 package.json (a few private modules removed)

{
  "name": "bigApp",
  "version": "19.3.0",
  "private": true,
  "scripts": {},
  "dependencies": {
    "adwords-auth": "0.0.10",
    "async": "^1.5.0",
    "aws-sdk": "~2.2.11",
    "babel": "^6.0.15",
    "babel-cli": "^6.2.0",
    "babel-core": "^6.2.0",
    "babel-preset-es2015": "^6.1.2",
    "backoff": "^2.4.1",
    "bigdecimal": "~0.6.1",
    "bluebird": "^2.10.1",
    "body-parser": "^1.0.1",
    "chai": "^3.4.0",
    "cheerio": "^0.19.0",
    "commander": "~2.8.1",
    "confrodo": "0.0.6",
    "connect-flash": "^0.1.1",
    "connect-nocache": "^1.1.0",
    "connect-redis": "~3.0.1",
    "cookie-parser": "^1.0.1",
    "country-data": "0.0.23",
    "countryjs": "^1.4.5",
    "csurf": "^1.8.3",
    "csv": "~0.4.6",
    "csv-stringify": "0.0.8",
    "csvjson": "^1.0.4",
    "db-migrate": "~0.9.17",
    "db-nuodb": "^2.0.2",
    "ejs": "^2.3.4",
    "execSync": "~1.0.2",
    "express": "*",
    "express-session": "^1.12.0",
    "fb": "~0.7.3",
    "force": "0.0.3",
    "freshbooks": "^1.0.0",
    "github-api": "^0.10.6",
    "glob": "^5.0.15",
    "googleanalytics": "~0.3.5",
    "harvest": "joeycozza/node-harvest",
    "infusionsoft-api": "Growmies/infusionsoft-api",
    "instagram-node": "^0.5.8",
    "instagram-node-lib": "^0.1.1",
    "jsftp": "~1.5.0",
    "json-to-table": "^2.0.0",
    "lodash": "^3.9.3",
    "lusca": "^1.3.0",
    "mailchimp": "~1.1.0",
    "method-override": "~2.3.5",
    "moment": "^2.10.6",
    "moment-duration-format": "^1.3.0",
    "moment-timezone": "^0.4.1",
    "mongodb": "~2.0",
    "morgan": "^1.0.0",
    "mssql": "^2.1.1",
    "multer": "^0.1.8",
    "mysql": "2.9.0",
    "nforce": "1.2.3",
    "node-fs": "~0.1.7",
    "node-futil": "0.0.3",
    "node-mixpanel-data-exporter": "0.0.1",
    "node-quickbooks": "~1.0.20",
    "node-recurly": "Growmies/node-recurly",
    "node-twitter-api": "^1.6.2",
    "node-uuid": "^1.4.1",
    "node-xlsx": "^0.6.0",
    "nodemailer": "~0.7.0",
    "numeral": "~1.5.3",
    "oauth-1.0a": "^1.0.0",
    "object-interpolator": "^1.2.1",
    "omit-empty": "^0.3.0",
    "oracledb": "^1.3.0",
    "passport": "~0.1.17",
    "passport-act-on": "^0.0.1",
    "passport-asana": "Growmies/passport-asana",
    "passport-box": "~0.1.0",
    "passport-channeladvisor": "0.0.5",
    "passport-dropbox-oauth2": "~0.1.5",
    "passport-facebook": "~2.0.0",
    "passport-forcedotcom": "Growmies/passport-forcedotcom",
    "passport-github": "^1.0.0",
    "passport-google-oauth": "~0.1.5",
    "passport-hubspot": "^0.1.0",
    "passport-infusionsoft": "0.0.3",
    "passport-instagram": "^1.0.0",
    "passport-intuit-oauth": "~0.1.0",
    "passport-local": "~0.1.6",
    "passport-mailchimp": "^1.0.0",
    "passport-oauth2": "^1.1.2",
    "passport-shopify": "0.0.1",
    "passport-surveymonkey": "mirkods/passport-surveymonkey",
    "passport-twitter": "~1.0.2",
    "passport-xero": "Growmies/passport-xero",
    "passport-youtube-v3": "0.0.2",
    "password-hash": "^1.2.1",
    "pg": "^4.4.2",
    "pg-hstore": "^2.3.2",
    "phantomjs": "^1.9.17",
    "postgres-queue": "0.1.0",
    "prettyjson": "~1.1.3",
    "q": "^1.4.1",
    "redis": "~2.3.1",
    "request": "~2.66.0",
    "require-dir": "^0.3.0",
    "s3": "^4.4.0",
    "sequelize": "^3.14.0",
    "sequelize-encrypted": "~0.1.0",
    "sequelize-json": "^2.1.0",
    "shopify-node-api": "^1.4.5",
    "soap": "^0.11.0",
    "soap-cookie": "^0.10.1",
    "socket.io": "^1.3.7",
    "ssh2": "^0.4.4",
    "surveymonkey": "0.0.6",
    "temp": "^0.8.1",
    "time-it": "0.2.0",
    "tinyrick": "^1.2.2",
    "tough-cookie": "^2.1.0",
    "traverse": "^0.6.6",
    "twitter": "^1.2.5",
    "unirest": "^0.4.2",
    "vertica": "^0.5.3",
    "winston": "^1.1.0",
    "xlsjs": "~0.7.0",
    "xlsx": "~0.8.0",
    "xml2js": "^0.4.13"
  },
  "devDependencies": {
    "gulp": "~3.9.0",
    "gulp-angular-templatecache": "^1.8.0",
    "gulp-concat": "^2.4.3",
    "gulp-exec": "^2.1.2",
    "gulp-if": "^2.0.0",
    "gulp-jshint": "^1.5.0",
    "gulp-less": "^3.0.3",
    "gulp-livereload": "^3.0.2",
    "gulp-minify-css": "^1.0.0",
    "gulp-minify-html": "^1.0.4",
    "gulp-ng-annotate": "^1.1.0",
    "gulp-nodemon": "^2.0.4",
    "gulp-nsp": "^2.1.0",
    "gulp-rev": "^6.0.1",
    "gulp-rimraf": "^0.2.0",
    "gulp-shell": "^0.5.0",
    "gulp-sourcemaps": "^1.5.2",
    "gulp-uglify": "^1.4.2",
    "gulp-util": "^3.0.7",
    "jshint-stylish": "^2.0.1",
    "mocha": "^2.3.3",
    "pegjs": "^0.9.0",
    "run-sequence": "^1.0.2",
    "should": "^7.1.1",
    "supertest": "^1.1.0",
    "yargs": "^3.26.0"
  }
}
dylang commented 8 years ago

I'm not able to use your package.json because of a bunch of packages that won't download like "passport-forcedotcom": "Growmies/passport-forcedotcom", or won't compile like oracledb.

I re-wrote almost all of the code, can you give the latest version a try and let me know if it doesn't work for you?

npm -g -i npm-check