The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 15, 2016

Correct answer!

0 votes
Alex Soto
Contributor
June 14, 2016

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

TAGS
AUG Leaders

Atlassian Community Events