question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto-installed Node.js in .vaadin should not take precedence over global by default

See original GitHub issue

Flow downloads and installs Node.js into ~/.vaadin if it can’t find npm command globally (i.e., on PATH). After such auto-installation, Flow will subsequently prefer npm and node commands in ~/.vaadin, even if a global installation has been added later. This version of node is used both when Flow runs npm install (when vaadin.pnpm.enable=false) and when it launches webpack-dev-server.

This is contradictory to the auto-install logic (which prefers global) and should not be the default behaviour. Only if the require.home.node parameter is set to true (false by default) should the ~/.vaadin/node/node be forced.

Flow version: 6.0-SNAPSHOT (2021-01-22).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Artur-commented, Feb 10, 2021

The starter wizard project uses Node 15 / npm 7. npm 7 uses a different lock file version than earlier npm versions (npm 7 == lockfile v2, earlier == lockfile v1)

Now every time I do something, not sure what, node is installed into ~/.vaadin/node

After this happens, the starter wizard (Vaadin 19) project uses the old node version and creates a v1 lockfile instead of the v2.

Then I have to delete ~/.vaadin/node to make everything work again.

Then some operation installs node into ~/.vaadin/node and it repeats.

0reactions
vaadin-botcommented, May 11, 2021

This ticket/PR has been released with platform 19.0.7. For prerelease versions, it will be included in its final version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js | Configuration | Flow | Vaadin 14 Docs
We recommend using the latest LTS version. A project-local installation will always take precedence over a global or ~/.vaadin installation.
Read more >
Auto-installed Node.js in .vaadin should not take precedence over ...
Auto-installed Node.js in .vaadin should not take precedence over global by default.
Read more >
maven - New Vaadin 14 app fails to run, error ... - Stack Overflow
js tools are required but not bundled within your Vaadin project by default. You have two solutions: Install the tools globally. Install within ......
Read more >
Run the in-depth Vaadin Flow tutorial using Spring Boot on an ...
Another key issue with the auto-install failure is that the current mainstream version of Node.js is not yet native to the Apple M1...
Read more >
Node.js vs Vaadin | What are the differences? - StackShare
Node.js - A platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Vaadin - Components and tools for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found