मैं विंडोज़ मशीन पर एनपीएम i का उपयोग करके अपनी परियोजना निर्भरताओं को स्थापित करने का प्रयास कर रहा हूं। हालांकि मैं यह त्रुटि लैंडिंग कर रहा हूँ:एमएस विंडोज 10: त्रुटि: कमांड विफल: git -c core.longpaths = true config --get remote.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
मैं कुछ शोध किया और पाया कि यह मुद्दों खिड़कियों फ़ाइलें और 260 वर्णों से अधिक निर्देशिका का समर्थन नहीं करने के लिए संबंधित है। वैकल्पिक हल मुझे मिल गया इस आदेश का उपयोग करने के longpath फ़ाइल नाम अनुमति देने के लिए किया गया था:
git config core.longpaths true
लेकिन यह काम करने लगता है। क्या कोई भी कामकाज का सुझाव दे सकता है और यह क्यों हो रहा है?
नोड और NPM संस्करणों: नोड: v6.2.0 NPM: 3.8.9
कृपया मुझे बताएं कि वहाँ और अधिक विवरण है कि मैं प्रदान करने की आवश्यकता है है?
क्या आप इसे काम कर रहे थे? –
@ महिनखान को कोई समाधान नहीं मिला। अब मैक के लिए swithced है। –