Auto-installed Node.js in .vaadin should not take precedence over global by default
See original GitHub issueFlow 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:
- Created 3 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
This ticket/PR has been released with platform 19.0.7. For prerelease versions, it will be included in its final version.