Open Artur- opened 5 years ago
This most likely indicates that there are duplicate dependencies 😱
Does Flow run npm dedupe
after installing dependencies?
The shrinkwrap packages install all their dependencies inside the corresponding folder even though they are also in the main node_modules
I think this should be resolved by npm dedupe
. Will double check if we can avoid that.
Can we make the message show up e.g max once per day/week instead of all the time? Having it spam the build log only makes me want to turn the whole thing off
Will investigate the options.
This is issue should not be closed, when i run mvn jetty:run
on the starters, it prints the info 3 times..
tested with platform 14.0.4
which is using vaadin-usage-statistics 2.0.10
Indeed, the fix was reverted because it did not work properly and was also tied to npm
I think. Any other ideas for this @web-padawan ?
Yes, the problem was that npm
could not be resolved in case of local Node installation.
I think we can try storing an info in the node_modules/.cache
folder (if there are folder write permissions, which might not be always true, so need to try / catch
).
Here is a library which could help to read / create such a cache folder: https://github.com/avajs/find-cache-dir
How about using the global ~/.vaadin
folder which is already used for e.g. proKey and other data. If you store it inside node_modules
, it would be per project which is probably not what you want?
With the latest Flow, that uses shrinkwrap packages, you see the info message three times during
npm install