"ionic cordova platform add ios"返回 ENOENT 错误



当我在离子项目中运行命令ionic cordova platform add ios时,终端显示以下错误:

[Error: ENOENT: no such file or directory, open '/Users/angelinatsuboi/Desktop/Deals2Meals/ios/package.json'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/angelinatsuboi/Desktop/Deals2Meals/ios/package.json'
}
[ERROR] An error occurred while running subprocess cordova.

我该怎么解决这个问题?

我通过删除根项目目录下的ios目录,然后运行来解决这个错误

ionic cordova platform add ios

相关内容

  • 没有找到相关文章

最新更新