Failed to fetch platform
See original GitHub issueCordova 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:
- Created 5 years ago
- Comments:22 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@genox I’ve unpinned the cordova version in dependencies of
cordova-check-plugins
(my package, my bad) and published a patch version to npm ascordova-check-plugins@4.0.4
- should resolve your issue, though global installation is recommended as it’s a CLI tool (as iscordova
)workaround: run
npm install acorn
in the Cordova project directory. that should installacorn@6
and that fixes the error for me (usingcordova@8.1.2
)