I’m trying to do a simple Ionic build but cannot find a way to make it work. Any ideas greatly appreciated.
“sudo npm install -g ionic” is successful and outputs:
#!/bin/bash -eo pipefail sudo npm install -g ionic /usr/local/bin/ionic -> /usr/local/lib/node_modules/ionic/bin/ionic + firstname.lastname@example.org added 271 packages in 9.704s
When “ionic build” runs it errors with “command not found”. I’ve tried adding a path but non of the following have worked (no such file or directory):
My simplified config.yaml:
version: 2.1 jobs: build: working_directory: ~/tmp docker: - image: circleci/node:9.9 steps: - checkout - run: name: Install Ionic 4. command: sudo npm install -g ionic - run: name: Install dependencies. command: npm install deploy-development: working_directory: ~/tmp machine: enabled: true steps: - run: name: Build app using development environment variables. command: ionic build --configuration development workflows: version: 2 build-and-deploy: jobs: - build - deploy-development: requires: - build filters: branches: only: develop