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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

bower is not recognized as an internal or external command, operable program or batch file Edited

My bamboo jobs fail with the following....

"'bower' is not recognized as an internal or external command, operable program or batch file' " This should be so easy. 

Coming from a site recovery, I have an issue with Bower configuration. After running an npm install bower -g (global), the agent still can't find it. 

I added the (bamboo agent) user directory "AppData\roaming\npm to the system path as the last resort which I will reboot the server after business hours for path change to take effect. 

Any other ideas? 

1 answer

0 votes
Jimmy Seddon Community Leader Apr 24, 2019

Hi Tonya,

My first recommendation would be to eliminate Bamboo from the equation and make sure that you can run a bower command such as checking the version from a command prompt/terminal on the server.

If that works, the next step would be to look at the build plan itself.  What type of task is it failing on?  If it's a script task, what type of shell is it trying to run the script in? If it's an NPM task is the correct npm executable path being loaded?

NodeEXE.JPG

You can define Agent specific paths for the location of executables, I've run into this in the past when setting up a new remote machine where the person who installed everything didn't do so in the same location that we use elsewhere so I needed to provide an agent specific path for the same executable.

Just some thoughts.

Hope that helps!

-James

We are running a script task which executes "bower install" under the build working directory of the build src. 

It yields error.

'bower' is not recognized as an internal or external command,
operable program or batch file.

I will reboot tonight to see if the path addition to the path variable resolves the issue. Let me know if you any other ideas. 

shell inline script task we are using. 

After adding the path locations of bower executable and rebooting, the agent was able to run bower jobs successfully. Thanks so much. 

Jimmy Seddon Community Leader Apr 25, 2019

Awesome! Glad you were able to sort out the problem! 

Jimmy Seddon Community Leader Apr 25, 2019

Awesome!

Glad you were able to sort out the problem!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

696 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you