Wrong node version 6.1.0 instead 11.10.1-alpine

#1

I got wrong node version 6.1.0 instead 11.10.1-alpine
I see that while building it uses expected node version
docker-compose up -d


Step 1/10 : FROM node:11.10.1-alpine
11.10.1-alpine: Pulling from library/node

But while installing dependencies node version is 6.1.0
my config is

version: 2
jobs:
  build:
    machine: # Use a Linux VM instead of docker environment
      enabled: true
      node:
        version: 11.10.1-alpine
    working_directory: ~/bone
    steps:
    - checkout
    - restore_cache:
        name: Restore Yarn Package Cache
        keys:
        - yarn-packages-{{ checksum "yarn.lock" }}
    - run: docker network create bone-net
    - run: docker-compose up -d
    - run: node -v
    - run: npm -v
    - run: npm install -g yarn
    - run:
        name: Install Dependencies
        command: yarn install
        no_output_timeout: 30m
    - save_cache:
        name: Save Yarn Package Cache
        key: yarn-packages-{{ checksum "yarn.lock" }}
        paths:
        - ~/.cache/yarn
    - run:
        name: Test BONE Frontend
        command: yarn lint:client && yarn coverage:client --runInBand
        no_output_timeout: 30m
    - run:
        name: Test BONE Backend
        command: yarn lint:backend && yarn coverage:backend --runInBand
        no_output_timeout: 30m
    - store_artifacts:
        path: docs/bone/1.0.0/
        prefix: coverage
    - store_artifacts:
        path: docs/bone/1.0.0/clover.xml
        prefix: tests

#2

Hello,

This is not valid config syntax.

You may be looking to use the docker executor with the appropriate node version. If you wish to remain with the machine executor, you will need to use NVM to install and change your node version.

https://circleci.com/docs/2.0/executor-types/

Docker:

jobs:
  build:
    docker:
      - image: circleci/node:VERSION

Machine:

version: 2
jobs:
  build:
    machine: true

Using the machine executor you can not specify a node version. You can use NVM as this user did: https://discuss.circleci.com/t/how-to-change-node-version-in-circleci-2-0/17455/4?u=kyletryon

#3

I got
Sorry, you don’t have access to that topic!
after click the link

#4

Fixed that.