# Specify nodeJs version for a machine circle 2.0

**URL:** <https://discuss.circleci.com/t/specify-nodejs-version-for-a-machine-circle-2-0/16484>\
**Category:** Build Environment\
**Tags:** nodejs\
**Created:** [September 13, 2017, 9:16pm UTC](https://discuss.circleci.com/t/specify-nodejs-version-for-a-machine-circle-2-0/16484 "2017-09-13T21:16:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrMan](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/mrman/32/17002_2.png) [@MrMan](https://discuss.circleci.com/u/MrMan)\
**Post date:** [September 13, 2017, 9:16pm UTC](https://discuss.circleci.com/t/specify-nodejs-version-for-a-machine-circle-2-0/16484/1 "2017-09-13T21:16:15Z")

</div>

I am struggling to find how to set the nodeJs version in CircleCi v2.0 when using `machine: true` in `.circleci/config.yml`

I can see `nvm` is used under the hood but can’t use it via a `- run:` command  
I can install `n` and install the latest `n 8.2.1` but the box still points to `/opt/circleci/nodejs/v6.1.0/bin/node`

Docker is not an option here.

I’d quite like to just specify it in the `config.yml` as I did for v1.0

````auto
      version: 8.2.1```

Any pointers anyone else having this issue?
````

---

<div class="post-metadata">

**Author:** ![FelicianoTech](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/felicianotech/32/21348_2.png) [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Post date:** [September 13, 2017, 11:28pm UTC](https://discuss.circleci.com/t/specify-nodejs-version-for-a-machine-circle-2-0/16484/2 "2017-09-13T23:28:58Z")

</div>

You don’t. If you don’t want to use Docker, then you’d need to install the NodeJS version you want.

---

<div class="post-metadata">

**Author:** ![MrMan](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/mrman/32/17002_2.png) [@MrMan](https://discuss.circleci.com/u/MrMan)\
**Post date:** [September 14, 2017, 3:41pm UTC](https://discuss.circleci.com/t/specify-nodejs-version-for-a-machine-circle-2-0/16484/3 "2017-09-14T15:41:40Z")

</div>

Thanks for the pointer.  
With a re-think I have spun up:  
`node`  
`selenium standalone-chrome`  
docker containers.

Rather than trying to install `selenium standalone`, `Java` and update `node` on a machine!

ta

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:39am UTC](https://discuss.circleci.com/t/specify-nodejs-version-for-a-machine-circle-2-0/16484/4 "2018-06-18T11:39:55Z")

</div>


