2016-12-21 29 views
5

Windows makinede npm i kullanarak proje bağımlılıklarımı yüklemeye çalışıyorum. Ancak bu hatayı iniyorum:MS Windows 10: Hata: Komut başarısız: git -c core.longpaths = true config --get uzak.origin.url

npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --get remote.origin.url 
npm WARN addRemoteGit  at ChildProcess.exithandler (child_process.js:202:12) 
npm WARN addRemoteGit  at emitTwo (events.js:106:13) 
npm WARN addRemoteGit  at ChildProcess.emit (events.js:191:7) 
npm WARN addRemoteGit  at maybeClose (internal/child_process.js:850:16) 
npm WARN addRemoteGit  at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5) 
npm WARN addRemoteGit git+https://5345345erg345eg34eg:[email protected]/test/test.git resetting remote C:\Users\Administrator\AppData\Roaming\npm-cache\_git-remotes\git-https-test-89f19adf because of error: { Error: Command failed: git -c core.longpaths=true config --get remote.origin.url 
npm ERR! Windows_NT 10.0.14393 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" 
npm ERR! node v6.2.0 
npm ERR! npm v3.8.9 
npm ERR! code 128 
npm ERR! fatal: bad object 1cf23bc52c0a3b1b5dde89949ff9f820522e0367 
npm ERR! fatal: remote did not send all necessary objects 

biraz araştırma yaptım ve bu konularda dosyalar ve 260 karakterden daha uzun dizinleri desteklemeyen pencere ile ilişkili olduğunu buldular. Aldığım geçici çözüm longpath dosya adı izin vermek için bu komutu kullanmaktı:

git config core.longpaths true 

Ama bu çalışıyor gibi görünmüyor. Herkes bir geçici çözüm önerebilir mi ve neden bu gerçekleşiyor?

Düğüm ve NPM sürümleri: Düğüm: v6.2.0 NPM: 3.8.9

Ben sağlamanız gerekir fazla ayrıntı varsa bana bildirin?

+0

'u güncelleştirmeden önce bu sorunu yaşadım. –

+0

@MahinKhan herhangi bir çözüm bulamadı. Şimdi Mac'e geçtiniz. –

cevap

1

npm'inizi güncellemeniz gerekir. Npm 5.