CircleCI fails to run npm install

redis

#1

my .circleci/config.yml is:

version: 2
jobs:
build:
docker:
- image: circleci/ruby:2.4
- image: circleci/node:6.10

environment:
  CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
  CIRCLE_TEST_REPORTS: /tmp/circleci-test-results

steps:
- checkout
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
- run: npm install --no-optional
- run: gem install bundler
- run: cp config/database.yml.example config/database.yml
- run: bundle exec rake db:create; bundle exec rake db:migrate RAILS_ENV=test

i’m getting the following error on cicleci build:
#!/bin/bash -eo pipefail
npm install --no-optional
/bin/bash: npm: command not found
Exited with code 127


#2

Readers will probably need to see your configuration in order to help.


#3

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.