next-update icon indicating copy to clipboard operation
next-update copied to clipboard

Support for local dependencies

Open montogeek opened this issue 8 years ago • 3 comments
trafficstars

Hi! I just come to a project that uses local dependencies: "e2-scripts-utils": "file:../../lib/utils", when running next-update, it fails with the following error:

Problem checking NPM dependency e2-scripts-utils version file:../../lib/utils
Invalid comparator: file:../../lib/utils

Looks like it does not support local dependencies, is there a way to ignore them or something?

Thanks!

montogeek avatar Jul 19 '17 13:07 montogeek

Hmm, it should probably skip file:... dependencies.

bahmutov avatar Jul 19 '17 14:07 bahmutov

Can you provide more details? I tested this in test/test-file-deps against latest version and it seems to skip these by default

bahmutov avatar Jul 19 '17 14:07 bahmutov

The project works, but next-update tries to install it again (run npm i), at some point it returns this error:

cannot find file /Users/montogeek/project/node_modules/e2-scripts-utils/package.json
ERROR: cannot find module e2-scripts-utils
ERROR testing next working updates
Error: Current installation is incomplete. Please run `npm install` or `bower install` first
    at /Users/montogeek/.nvm/versions/node/v7.7.4/lib/node_modules/next-update/src/next-update.js:51:20
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)
From previous event:
    at checkCurrentInstall (/Users/montogeek/.nvm/versions/node/v7.7.4/lib/node_modules/next-update/src/next-update.js:69:10)
    at Object.<anonymous> (/Users/montogeek/.nvm/versions/node/v7.7.4/lib/node_modules/next-update/bin/next-update.js:91:3)
    at run (bootstrap_node.js:427:7)
    at startup (bootstrap_node.js:148:9)
    at bootstrap_node.js:542:3

montogeek avatar Jul 24 '17 15:07 montogeek