Unknown command "build" CircleCI

  • Hey Guys,
    I have the following issue.
    When I try to build the Quasar spa on circleCI i get an Unknown command “build”.

    The config looks like this.

       machine: true
         - checkout
         # start proprietary DB using private Docker image
         # with credentials stored in the UI
         - run:
             name: Install  Node.js 10.15.3 with build in nvm tool
             # https://www.cloudesire.com/how-to-upgrade-node-on-circleci-machine-executor/
             command: |
               set +e
               curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
               export NVM_DIR="/opt/circleci/.nvm"
               [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
               nvm install v10.15.3
               nvm alias default v10.15.3
               # Each step uses the same `$BASH_ENV`, so need to modify it
               echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
               echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV
         - run: npm install -g @quasar/cli
         - run: quasar build

    Does anyone know how to get this working?
    Kind regards

  • You (the user) need(s) to be in the project folder for the build command to work. Not that is the problem, but it might be.


  • Hey,
    I found the Problem.
    For anyone running into this problem, the issue is that the dev dependencies are not installed, the fix was easy, I modified the config as follows.

    • run: npm install && npm install --only=dev

    After this, it works like a charm.

    Kind regards

  • Ah. Yes. Of course. The dependencies are needed for anything to work.


Log in to reply