2017-09-08 1 views
0

여러 번 시도해 보았습니다.하지만 봤지만 헛되이 이온 성의 안정성 문제라고 생각합니다! Ionic 3에 Youtube Video Player 플러그인을 설치할 수 없습니다

내가 실행하면 :

Error: Failed to fetch plugin https://github.com/Glitchbone/CordovaYoutubeVideoPlayer.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 4294963228 Error output: npm ERR! addLocal Could not install C:\Users\Houssem\AppData\Local\Temp\npm-3196-5b6372b9\git-cache-721c1a29\765b5954e78ecf7950099c10bfe5f81133f8f396

npm ERR! Windows_NT 10.0.15063 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" " https://github.com/Glitchbone/CordovaYoutubeVideoPlayer.git " "--save"

npm ERR! node v6.10.0 npm ERR! npm v3.10.10 npm ERR! code EISDIR npm ERR! errno -4068 npm ERR! syscall read

npm ERR! eisdir EISDIR: illegal operation on a directory, read npm ERR! eisdir This is most likely not a problem with npm itself npm ERR! eisdir and is related to npm not being able to find a package.json in

npm ERR! eisdir a package you are trying to install.

npm ERR! Please include the following file with any support request:

npm ERR! F:\WORK\EBOOK\ebookmuhammed\node_modules\npm-debug.log

갖는 :

cordova plugin add https://github.com/Glitchbone/CordovaYoutubeVideoPlayer.git 

내가이 오류를 얻을

cordova --version => 7.0.1 
ionic --version => 3.9.2 
npm --version  => 3.10.10 
+0

디렉토리를 파일로 읽으려고합니다. 아무것도 추천 할만한 제안이 너무 많습니다.하지만이 답변을 살펴보고 문제가 해결되는지 확인해 보겠습니다. https://stackoverflow.com/questions/34959038/npm-stuck-giving-the-same- error-eisdir-directory-read-a- – Aaron

+0

감사합니다. 그러나 도움이되지 않습니다. –

답변

1

음, 오류 메시지가 무엇을 말 :

npm ERR! eisdir EISDIR: illegal operation on a directory, read npm ERR! eisdir This is most likely not a problem with npm itself npm ERR! eisdir and is related to npm not being able to find a package.json in

cordova 7.0.0 cordova-plugins에는 package.json 파일 (Cordova 7.0.0 release notes)이 필요합니다. 그래서 플러그인을 포크 package.json 파일을 복사하여 다른 플러그인의 package.json 파일의 내용을 복사하고 그 값을 플러그인에 맞는 것으로 바꿉니다 (plugin.xml은 복사하기 좋은 곳입니다).

+0

그렇게 빨리 보겠습니다. –

관련 문제