기본 Screen Orientation 플러그인을 사용하려고하는데 Ionic이이를 사용하지 않습니다. 나는 문서를 다음이 시도하고있다 :Ionic 3 Screen Orientation Plugin이 설치되지 않았습니다.
ionic cordova plugin add cordova-plugin-screen-orientation
npm install --save @ionic-native/screen-orientation
npm
명령 작품을 미세 설치하지만 이온은 플러그인을 설치하기를 거부하고 저장소에없는 것을 말한다.
https://github.com/ionic-team/ionic-native/issues/1778
:
cordova plugin add https://github.com/Exilz/cordova-plugin-screen-orientation.git --save
하지만,하지만 ... 그것이 나쁘지 않다
는고대 구글 - Fu는 지혜는이 버그 보고서에 나를 데리고 이오니아없이 직접 코르도바에 플러그인을 설치하는 아이디어? 충분히 재미
> cordova plugin add cordova-plugin-screen-orientation --save
C:\Program Files (x86)\OpenSSH\bin\sh.exe (10140): *** couldn't allocate cygwin heap, Win32 error 0, base 0x7F0000, top 0x7F5000, reserve_size 20480, allocsize 20480, page_const 4096
Error: Failed to fetch plugin git+https://github.com/Exilz/cordova-plugin-screen
-orientation.git 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 1 Error output:
npm ERR! git clone C:\Users\tomcat\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-Exilz-cordova-plugin-screen-orientation-git-16e251fa C:\Users\tomcat\AppData\Local\Temp\npm-9328-8a7aefe6\git-cache-cc84988e\bb17ab18427b91ea61289a7f6ab3a8bac822fecf: Cloning into 'C:\Users\tomcat\AppData\Local\Temp\npm-9328-8a7aefe6\git-cache-cc84988e\bb17ab18427b91ea61289a7f6ab3a8bac822fecf'...
npm ERR! git clone C:\Users\tomcat\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-Exilz-cordova-plugin-screen-orientation-git-16e251fa C:\Users\tomcat\AppData\Local\Temp\npm-9328-8a7aefe6\git-cache-cc84988e\bb17ab18427b91ea61289a7f6ab3a8bac822fecf: C:\Program Files (x86)\OpenSSH\bin\sh.exe (10140): *** couldn't allocate cygwin heap, Win32 error 0, base 0x7F0000, top 0x7F5000, reserve_size 20480, allocsize 20480, page_const 4096
npm ERR! git clone C:\Users\tomcat\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-Exilz-cordova-plugin-screen-orientation-git-16e251fa C:\Users\tomcat\AppData\Local\Temp\npm-9328-8a7aefe6\git-cache-cc84988e\bb17ab18427b91ea61289a7f6ab3a8bac822fecf: 1 [main] sh 8964 sync_with_child: child 10140(0x1BC) died before initialization with status code 0x1
npm ERR! git clone C:\Users\tomcat\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-Exilz-cordova-plugin-screen-orientation-git-16e251fa C:\Users\tomcat\AppData\Local\Temp\npm-9328-8a7aefe6\git-cache-cc84988e\bb17ab18427b91ea61289a7f6ab3a8bac822fecf: 164 [main] sh 8964 sync_with_child: *** child state waiting for longjmp
npm ERR! git clone C:\Users\tomcat\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-Exilz-cordova-plugin-screen-orientation-git-16e251fa C:\Users\tomcat\AppData\Local\Temp\npm-9328-8a7aefe6\git-cache-cc84988e\bb17ab18427b91ea61289a7f6ab3a8bac822fecf: Cannot fork: Resource temporarily unavailable
npm ERR! git clone C:\Users\tomcat\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-Exilz-cordova-plugin-screen-orientation-git-16e251fa C:\Users\tomcat\AppData\Local\Temp\npm-9328-8a7aefe6\git-cache-cc84988e\bb17ab18427b91ea61289a7f6ab3a8bac822fecf: fatal: Could not read from remote repository.
npm ERR! git clone C:\Users\tomcat\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-Exilz-cordova-plugin-screen-orientation-git-16e251fa C:\Users\tomcat\AppData\Local\Temp\npm-9328-8a7aefe6\git-cache-cc84988e\bb17ab18427b91ea61289a7f6ab3a8bac822fecf:
npm ERR! git clone C:\Users\tomcat\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-Exilz-cordova-plugin-screen-orientation-git-16e251fa C:\Users\tomcat\AppData\Local\Temp\npm-9328-8a7aefe6\git-cache-cc84988e\bb17ab18427b91ea61289a7f6ab3a8bac822fecf: Please make sure you have the correct access rights
npm ERR! git clone C:\Users\tomcat\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-Exilz-cordova-plugin-screen-orientation-git-16e251fa C:\Users\tomcat\AppData\Local\Temp\npm-9328-8a7aefe6\git-cache-cc84988e\bb17ab18427b91ea61289a7f6ab3a8bac822fecf: and the repository exists.
npm ERR! git clone C:\Users\tomcat\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-Exilz-cordova-plugin-screen-orientation-git-16e251fa C:\Users\tomcat\AppData\Local\Temp\npm-9328-8a7aefe6\git-cache-cc84988e\bb17ab18427b91ea61289a7f6ab3a8bac822fecf:
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "git+https://github.com/Exilz/cordova-plugin-screen-orientation.git" "--production" "--save"
npm ERR! node v6.11.5
npm ERR! npm v3.10.10
npm ERR! code 128
npm ERR! Command failed: git -c core.longpaths=true clone C:\Users\tomcat\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-Exilz-cordova-plugin-screen-orientation-git-16e251fa C:\Users\tomcat\AppData\Local\Temp\npm-9328-8a7aefe6\git-cache-cc84988e\bb17ab18427b91ea61289a7f6ab3a8bac822fecf
npm ERR! Cloning into 'C:\Users\tomcat\AppData\Local\Temp\npm-9328-8a7aefe6\git-cache-cc84988e\bb17ab18427b91ea61289a7f6ab3a8bac822fecf'...
npm ERR! C:\Program Files (x86)\OpenSSH\bin\sh.exe (10140): *** couldn't allocate cygwin heap, Win32 error 0, base 0x7F0000, top 0x7F5000, reserve_size 20480, allocsize 20480, page_const 4096
npm ERR! 1 [main] sh 8964 sync_with_child: child 10140(0x1BC) died before initialization with status code 0x1
npm ERR! 164 [main] sh 8964 sync_with_child: *** child state waiting for longjmp
npm ERR! Cannot fork: Resource temporarily unavailable
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! f:\Cordova\timelapser\npm-debug.log
[ERROR] An error occurred while running cordova plugin add cordova-plugin-screen-orientation --save (exit code 1).
,하지만 난 새로운 이온 DevApp에서 응용 프로그램을 미리 볼 경우 작동하는 것 : 여기
실제로 ionic cordova plugin add cordova-plugin-screen-orientation
에 일어나는 것입니다. 제대로 구축하고 Android 휴대 전화에서 실행하면 작동하지 않습니다.
제게 잘 작동하면 이온 - 클리 : 'npm install -g ionic @ latest' 및/또는 cordova :'npm install -g cordova @ latest'를 업그레이드해야합니다. – David
실제 오류 게시 "이오니아는 그것을 사용하기를 거부합니다"는 암시하지 않습니다. – Everett
실제 오류가 게시되었습니다. –