Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

bash: grunt: command not found

Jamie Duong June 13, 2016

Hi,

I trying Bitbucket-Pipelines but I got a problem with grunt.

Here is my YML test file,

image: node:5.11.0
pipelines:
  default:
    - step:
        script:
          - echo "This script runs on all branches that don't have any specific pipeline assigned in 'branches'."
  branches:
    master:
      - step:
          script:
            - npm --version
            - npm install
            - grunt

When the Pipelines run I failed in Grunt command with:
+ grunt bash: 
grunt: command not found
 Thanks

---

Chiendv

2 answers

1 accepted

6 votes
Answer accepted
Zaki Salleh
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 13, 2016

I had the same error with grunt. You might need to add these 2 lines before 'npm install':

  • npm install -g grunt-cli
  • npm install grunt --save-dev

See if that works.

 

 

Jamie Duong June 14, 2016

awesome, it works

okbel June 15, 2016

Correct answer!

0 votes
Alex Soto June 14, 2016

You likely only need `-g` to install it globally

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events