cordova - Error: Failed to fetch platform android

后端 未结 15 2381
情深已故
情深已故 2020-11-29 09:19

I installed cordova and create a new project.

But when I use this command to add android platform:

cordova platform add android

15条回答
  •  渐次进展
    2020-11-29 10:06

    I had this same problem, however, the issue was a missing peer dependency on acorn.

    Adding acorn to the devDependencies section of my package.json did the trick.

    So my suggestion is to look for missing peer dependencies and add them to the devDependencies section of your package.json.

提交回复
热议问题