当我在离子项目中运行命令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