Does Netlify support nodejs v12 LTS in building (deploy)?

I use npm to build my static site. It seems Deploy of Netlify does not support node 12 LTS at the moment?

my .nvmrc file contains v12 (or I change to 12)

The log says

2:33:16 PM: Attempting node version 'v12 ' from .nvmrc
2:33:17 PM: Version 'v12 ' not found - try `nvm ls-remote` to browse available versions.

Hi there, welcome. try changing it to 12 not v12. Does that work?

Also, a link to your deploy log would be helpful to see what is going on in more detail, thanks.

1 Like

Thanks for your reply. Use either v12 or 12, it does not work.

Here is the link (I don’t know how to make it public visible)
https://app.netlify.com/sites/lucid-kilby-2e2851/deploys/5e182b0f16008d00089099b5

2:43:11 PM: Build ready to start
2:43:13 PM: build-image version: 9cade8af58c2cf3a17a1e9433d2e979149488837
2:43:13 PM: build-image tag: v3.3.5
2:43:13 PM: buildbot version: 2d05064ce3dd2eb95d282a24602ab707dd9581e8
2:43:13 PM: Fetching cached dependencies
2:43:14 PM: Failed to fetch cache, continuing with build
2:43:14 PM: Starting to prepare the repo for build
2:43:14 PM: No cached dependencies found. Cloning fresh repo
2:43:14 PM: git clone https://github.com/lockevn/shop-dato-tnhn
2:43:15 PM: Preparing Git Reference refs/heads/master
2:43:15 PM: Found Netlify configuration file. Overriding site configuration
2:43:15 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'dist' versus '' in the Netlify UI
2:43:15 PM: Different build command detected, going to use the one specified in the Netlify configuration file: 'npm run generate' versus '' in the Netlify UI
2:43:15 PM: Starting build script
2:43:15 PM: Installing dependencies
2:43:16 PM: Attempting node version '12
' from .nvmrc
2:43:17 PM: Version '12
' not found - try `nvm ls-remote` to browse available versions.
2:43:17 PM: Failed to install node version '12
'
2:43:17 PM: Error running command: Build script returned non-zero exit code: 1
2:43:17 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
2:43:17 PM: Failing build: Failed to build site
2:43:17 PM: Finished processing build request in 4.020807789s

Hmm, thanks for that. We will investigate. One more question: the log output looks a little odd. Are you sure there isn’t a linebreak in your .nvmrc? just ruling things out.

Can you post the content of your .nvmrc file too, please?