gpt4 book ai didi

android - 我试图在 ionic 中添加 android 平台但它不起作用,它显示错误

转载 作者:行者123 更新时间:2023-11-29 02:35:12 25 4
gpt4 key购买 nike

我正在尝试在 ionic 中添加 android 平台但它不起作用,它显示以下错误:

C:\Users\Lenovo\Desktop\first app\RoomBooking>cordova platform add android

Using cordova-fetch for cordova-android@~6.3.0
Error: Failed to fetch platform cordova-android@~6.3.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code 4294963248 Error output:
npm ERR! path C:\Users\Lenovo\Desktop\first app\RoomBooking\node_modules\.stagin
g
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\Lenovo\Desktop\
first app\RoomBooking\node_modules\.staging'
npm ERR! { Error: EPERM: operation not permitted, unlink 'C:\Users\Lenovo\Deskt
op\first app\RoomBooking\node_modules\.staging'
npm ERR! stack: 'Error: EPERM: operation not permitted, unlink \'C:\\Users\\Le
novo\\Desktop\\first app\\RoomBooking\\node_modules\\.staging\'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'C:\\Users\\Lenovo\\Desktop\\first app\\RoomBooking\\node_modul
es\\.staging' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Lenovo\AppData\Roaming\npm-cache\_logs\2017-11-26T21_56_46
_792Z-debug.log

我该怎么办?

最佳答案

这可能是 npm 的问题。尝试降级 npm,运行以下命令:

npm install -g npm@5.3

关于android - 我试图在 ionic 中添加 android 平台但它不起作用,它显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47501470/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com