mirror of
https://github.com/expo/appcenter-docs.git
synced 2026-11-23 05:39:31 -10:00
30 lines
1.2 KiB
Markdown
30 lines
1.2 KiB
Markdown
---
|
|
title: React Native Node.js versions selection
|
|
description: How to specify Node.js version for React Native app
|
|
keywords: build, react-native, nodejs
|
|
author: lucen-ms
|
|
ms.author: lucen
|
|
ms.date: 09/08/2020
|
|
ms.topic: article
|
|
ms.assetid: 14082d66-a0ff-45e6-938d-259f64c35337
|
|
ms.service: vs-appcenter
|
|
ms.custom: build
|
|
ms.tgt_pltfrm: react-native
|
|
---
|
|
|
|
# Node.js selection
|
|
|
|
[!INCLUDE [Retirement announcement for App Center](~/includes/retirement.md)]
|
|
|
|
## Major versions of Node.js
|
|
The following versions are available for use in App Center Build: 6.X, 8.x, 10.x, 12.x, 14.x, 16.X.
|
|
See Also: [App Center Cloud Build Machines](~/build/software.md)
|
|
|
|

|
|
|
|
## Using .nvmrc
|
|
If the app repository contains an `.nvmrc` file, the option **Use .nvmrc** will be available in the **Node.js version dropdown**. Select this option to use the node version from the `.nvmrc` file for the build.
|
|
|
|
- The `.nvmrc` file should be located in the same folder as the project's `package.json` file or in one of the parent folders
|
|
- The `.nvmrc` syntax can be found in [nvm docs](https://github.com/nvm-sh/nvm#nvmrc)
|