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

unexpected token { #973

Closed
veereshkorwar opened this issue May 13, 2020 · 3 comments
Closed

unexpected token { #973

veereshkorwar opened this issue May 13, 2020 · 3 comments

Comments

@veereshkorwar
Copy link

Hi
I have created ionic v1 project and tried checking the platforms using "cordova platforms" in command prompt then im getting error saying "unexpected token {"

i have tried uninstalling cordova and installing again ... but still same issue! Any help on the will be greatly appreciated.

image

image

ionic version : 1.7.14
cordova version : 5.4.1
Node : 5.3.0
npm : 3.3.12

@erisu
Copy link
Member

erisu commented May 13, 2020

It appears that you are using a really old version of Cordova and node/npm.

The Cordova version that you are using is not supported. We generally support and push updates only the latest major release of Cordova which is currently 9.x.

Also, the version of the node you are running has already reached its end-of-life. The node team currently maintains only 10.x and over. https://nodejs.org/en/about/releases/

I recommend upgrading:

  • Node to the latest LTS. (currently 12.16.3)
  • Cordova to the latest release. (currently 9.0.0)

@veereshkorwar
Copy link
Author

@erisu thanks .... but the project we are working on requires to use that specific versions of node,ionic and cordova .
upgrading to latest would lead us to where most of our project modules failed to support.

@breautek
Copy link
Contributor

If you're unable to update for whatever reasons, then this is as far as we can provide support and respectfully you're on your own.

Your options are:

  • Refactor your app so that it runs on modern & supported versions of software.
  • Fork the libraries you use and apply fixes/patches to the version branches that you use.

The first option would be the recommended. Using out-of-date software tends to have security concerns as they don't receive security patches.

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