मैंने यह सुनिश्चित करने का प्रयास किया है कि मैं नवीनतम संस्करण का उपयोग कर रहा हूं क्योंकि मेरा ngCordova मीडिया प्लगइन किसी कारण से काम नहीं कर रहा है।ngCordova बोवर त्रुटि - कोई विचार कैसे ठीक करें?
मैं इस त्रुटि मिलती है:
npm WARN locking Error: EACCES, open '/Users/SubjectiveEffect/.npm/_locks/bower-e8debc5417026b57.lock'
npm WARN locking at Error (native)
npm WARN locking /Users/SubjectiveEffect/.npm/_locks/bower-e8debc5417026b57.lock failed { [Error: EACCES, open '/Users/SubjectiveEffect/.npm/_locks/bower-e8debc5417026b57.lock']
npm WARN locking errno: -13,
npm WARN locking code: 'EACCES',
npm WARN locking path: '/Users/SubjectiveEffect/.npm/_locks/bower-e8debc5417026b57.lock' }
npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! Attempt to unlock /usr/local/lib/node_modules/bower, which hasn't been locked
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! /Users/SubjectiveEffect/myApp/npm-debug.log
मैं पता नहीं है कि यह कैसे तय करने के लिए किया है।
कोई भी विचार?
संपादित करें: मैंने कुछ tidying अप, अनइंस्टॉल किया और पुनर्स्थापित किया। जब मैं "बोवर स्थापित ngCordova"
"bower cached git://github.com/driftyco/ng-cordova.git#0.1.12-alpha
bower validate 0.1.12-alpha against git://github.com/driftyco/ng-cordova.git#*
bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/driftyco/ng-cordova.git", exit code of #69 Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
Additional error details:
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo."
कोशिश मैं अब इस त्रुटि मिल रही है लेकिन मुझे बताया गया हो अगर मैं sudo के साथ इसे चलाने के लिए प्रयास करें:
"bower ESUDO Cannot be run with sudo
Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs."
कोई भी विचार?
आप क्या आदेश चला रहे हैं? क्या आपने 'सुडो' के साथ प्रयास किया है? –
मैं इसे लाइन के साथ अपडेट करने की कोशिश कर रहा हूं जो मुझे देता है -एनपीएम अपडेट-जी बोवर। यदि आप इसे सूडो के साथ आज़माते हैं तो यह मुझे बताता है कि मुझे सूडो की आवश्यकता नहीं है। –
हम्म, कोशिश करें [यह] (https://github.com/npm/npm/issues/8847) –