iandotkelly / nlf

Node License Finder
MIT License
153 stars 41 forks source link

Error while using an overridden npm package #62

Open tt-driver-apps opened 4 years ago

tt-driver-apps commented 4 years ago

Hi,

In our project, we use a new NPM feature to override a package:

See https://github.com/Kudo/jsc-android-buildscripts

yarn add jsc-android@npm:@kudo-ci/jsc-android

will generate this line in our package.json:

"jsc-android": "npm:@kudo-ci/jsc-android@250230.2.1"

Sadly, nlffail on with this error:

Serious problem reading node_module dependencies
Error: /<path to project>/node_modules/@kudo-ci/jsc-android/package.json is not a node project
      at /<path to project>/node_modules/snyk-resolve-deps/lib/deps.js:125:13
      at tryCallOne (/<path to project>/node_modules/promise/lib/core.js:37:12)
      at /<path to project>/node_modules/promise/lib/core.js:123:15
      at flush (/<path to project>/node_modules/asap/raw.js:50:29)
      at processTicksAndRejections (internal/process/task_queues.js:79:11),

Do you have any suggestion to avoid this problem? Or a plan to improve the library to deal with that?

Thanks a lot.