2

When trying to build my project using Terminal as:

ionic build 

I am getting the following error

ERROR running one or more of the platforms: SyntaxError: Unexpected token < You may not have the required environment or OS to run this project

2
  • is it working in ionic serve --lab? Commented Mar 8, 2016 at 12:57
  • it is working when i type ionic serve --lab.. But when i try to run on mobile either using ionic upload or ionic build i am getting the above error Commented Mar 8, 2016 at 14:15

2 Answers 2

1

This is because of Git hub, because when i pull code from co-member there is a git head that is created causing that error. Once we remove the Git Head everywhere the app builds correctly.

Sign up to request clarification or add additional context in comments.

Comments

0

Install the ios and/or android SDK in your system and Add platform to your ionic project ionic platform add <OS> . Then try executing ionic build <OS>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.