0
기존 Ionic/Cordova 프로젝트에 추가 Cordova 플러그인을 어떻게 설치합니까? Cordova 배터리 상태 플러그인이 필요합니다. 내가하려고하면 :이납니다이오니아/코르도바 : 이온 원시 플러그인을 설치하는 방법
ionic cordova plugin add cordova-plugin-battery-status
:
Error: Failed to fetch plugin cordova-plugin-battery-status via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 4294963248 Error output:
npm ERR! path
C:\development\ionic\baterry-status\battery_test\node_modules\fsevents\node_modules\ansi-regex\package.json
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink
'C:\development\ionic\baterry-status\battery_test\node_modules\fsevents\node_modules\ansi-regex\package.json'
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, unlink
'C:\development\ionic\baterry-status\battery_test\node_modules\fsevents\node_modules\ansi-regex\package.json'
npm ERR! at Error (native)
npm ERR! stack: 'Error: EPERM: operation not permitted, unlink
\'C:\\development\\ionic\\baterry-status\\battery_test\\node_modules\\fsevents\\node_modules\\ansi-regex\\package.json\'\n
at Error (native)',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path:
'C:\\development\\ionic\\baterry-status\\battery_test\\node_modules\\fsevents\\node_modules\\ansi-regex\\package.json'
}
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\Administrador\AppData\Roaming\npm-cache\_logs\2017-09-14T14_55_19_022Z-debug.log
하여 이온 CLI 버전은 무엇입니까로 이동? –
맨 마지막에 3.10.3 버전 –
이 있습니다. 루트로 명령을 실행하도록 요청합니다. 왜 코도바 플러그인을 설치하려면 sudo가 필요한지 잘 모르겠지만 시도해 보셨습니까? –