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.

Always install latest node

See original GitHub issue

Do you want to request a feature or report a bug? I want to know, is there any way we can always install the latest version of NodeJS instead of explicitly specifying like <nodeVersion>v8.11.1</nodeVersion>

What I propose is instead of explicitly specifying the node version we could specify something like <nodeVersion>LATEST</nodeVersion> which will install the current stable version.

What is the current behavior? We have to manually search for the latest version of node and add the version inPOM.xml

<nodeVersion>v8.11.1</nodeVersion>

What is the expected behavior? <nodeVersion>LATEST</nodeVersion> Please mention your frontend-maven-plugin and operating system version. I’m using frontend-maven-plugin 1.7.6 and Mac 10.14.5 (Mojave)

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
eirslettcommented, Aug 15, 2019

The reason this isn’t supported, is that a new version of node.js could introduce a regression/bug (yes, it happened to me and I wasted hours because of it) so in order to have reproducible builds (no “works on my machine” issues) the plugin is designed so that you have to lock down to a specific version of Node.js. So if there’s a newer version, simply update the version in your pom.xml file!

1reaction
vmontalacommented, Aug 15, 2019

What about <nodeVersion>LTS</nodeVersion> as the LATEST could also mix LTS, Current/Stable, etc

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to npm install and force latest version (permanently)?
Use "*" as your version in your package.json file. For example: "dependencies": { "my-awesome-repo": "*" }. Upon npm install this will ...
Read more >
Try the latest stable version of npm
To get around this, you can do one of the following: Option 1: edit your Windows installation's PATH to put %appdata%\npm before %ProgramFiles%\nodejs...
Read more >
Using npm To Install A Specific Version Of A Node.js Package
By default, the npm install command fetches the latest available version of the specified package—in this case, it's Renovate version ...
Read more >
Install Node.js, npm, and VS Code - IBM Developer
To install the latest Node.js version 16, enter the brew install node@16 ... Tip: Homebrew always installs the current version of Node.js when...
Read more >
Download & Update Node.js to the Latest Version! Node v19 ...
Direct download links to update to the latest Node.js versions: Node v19.0.0 / LTS v16.18.0.
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