question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to fetch platform

See original GitHub issue

Cordova version: 7.0.1 and 7.1.0 Last time build app was on 09.10.18. But now when running npx cordova platform add ios@4.5.4, I’m getting following error:

Error: Failed to fetch platform cordova-ios@4.5.4
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm WARN package.json NAME.app@1.0.0 No repository   ##field.
npm WARN package.json NAME.app@1.0.0 No README data
npm ERR! Darwin 18.0.0
npm ERR! argv "/usr/local/bin/node" "/PATH/node_modules/.bin/npm" "install" "cordova-ios@4.5.4" "--save"
npm ERR! node v8.12.0
npm ERR! npm  v2.15.12
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package acorn@5.7.3 does not satisfy its siblings' peerDependencies requirements!

Found that ticket of acorn package.

Any work around?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:22 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
dpa99ccommented, Nov 21, 2018

@genox I’ve unpinned the cordova version in dependencies of cordova-check-plugins (my package, my bad) and published a patch version to npm as cordova-check-plugins@4.0.4 - should resolve your issue, though global installation is recommended as it’s a CLI tool (as is cordova)

2reactions
dpa99ccommented, Nov 21, 2018

workaround: run npm install acorn in the Cordova project directory. that should install acorn@6 and that fixes the error for me (using cordova@8.1.2)

Read more comments on GitHub >

github_iconTop Results From Across the Web

cordova - Error: Failed to fetch platform android - Stack Overflow
Open android studio and go to to project setting and make sure u have the download the same version SDK. For me this...
Read more >
Failed to fetch platform cordova-android@^9.0.0 Probably this ...
Hi, This stopped working for some reason, tried to update nodeJs and it did not help: cordova platform add android Using cordova-fetch for ......
Read more >
Build app container error "Failed to fetch platform cordova-ios ...
1) Run the npm cache command to clear cache in npm: npm config set fetch-retry-maxtimeout 60000 -g npm cache clean --force npm cache...
Read more >
Failed to fetch platform cordova-android@~6.3.0 - Apache
Check your connection and platform name/version/URL. Failed to get absolute path to installed module. It works fine when adding individual platform: cordova ...
Read more >
Error: Failed to fetch platform cordova-android@9.0.0 !
Probably this is either a connection problem, or platform spec is incorrect. Check your connection and platform ~~/URL. Error: npm: Command ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found