Npm-check-updates: Unhandled rejection for local file:dependency

Created on 13 Mar 2019  路  4Comments  路  Source: raineorshine/npm-check-updates

  • [x] I have read the list of known issues before filing this issue.
  • [x] I have searched for similiar issues before filing this issue.

  • node version: 10.15.1

  • npm version: 6.4.1
  • npm-check-updates version: 3.0.5

I have a local dependency in my package.json that looks like this:

{
  "devDependencies": {
    ...
    "eslint-plugin-internal": "file:devtools/eslint-rules",
    ...
  }
}

Since upgrading to v3.0.5, I get this error when running ncu:

Unhandled rejection PackageNotFoundError: Package `eslint-plugin-internal` could not be found
    at packageJson (/usr/lib/node_modules/npm-check-updates/node_modules/package-json/index.js:70:10)
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
bug

Most helpful comment

Should be fixed in v3.0.7.

All 4 comments

Looks like this was possibly caused by 529bebad3e4e1e2f26c328d15dc5597f41745995 since [email protected] seems to work fine.

I don't think it was caused by 529beba. There are several commits that went into 3.0.5, so my guess is that it was caused by ba48389ba66e331f323f78bfdd1677ba7a02ac41 ("replace npm cli calls with package-json").

@stoically could you please look into this issue?

I confirm this error also occurs with github hosted packages. It started since 3.0.5 update.

Should be fixed in v3.0.7.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vayurobins picture vayurobins  路  5Comments

JoshuaKGoldberg picture JoshuaKGoldberg  路  3Comments

anonimoconiglio picture anonimoconiglio  路  6Comments

daveisfera picture daveisfera  路  7Comments

benface picture benface  路  7Comments