Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"-bash: audit-ci: command not found" on CircleCI #94

Closed
joshhogg opened this issue Jun 20, 2019 · 2 comments
Closed

"-bash: audit-ci: command not found" on CircleCI #94

joshhogg opened this issue Jun 20, 2019 · 2 comments

Comments

@joshhogg
Copy link

Running a CircleCI job in version 2 of CircleCi. Have the two commands, slightly modified from the Readme:

    - run: cd app && npm install --no-audit
    - run: cd app && audit-ci --moderate

When CircleCI executes the command it returns: "/bin/bash: audit-ci: command not found"

We are running node v10.15 and npm v6.9.

What am I missing? From what I understand the code makes a bash script available as audit-ci?

@quinnturner
Copy link
Member

Hi Josh, sorry for the late response!

I am not sure exactly the issue here. We have a file bin/audit-ci that should be picked up within the environment.

One attempt might be cd app && npm install --no-audit && audit-ci --moderate? I don't know how that would be any different, just an attempt.

@dw2
Copy link
Contributor

dw2 commented Jul 13, 2019

We had to install audit-ci globally in our Circle builds for it to work. Have you tried the “-g” flag?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants