शुरू नहीं होगी जब मेरे Ubuntu वी एम पर अपने प्रोजेक्ट पर स्थापित एक स्थानीय से कर्मा चल रहा है, कर्म नहीं चलेगा क्योंकि PhantomJS शुरू नहीं कर सकते।कर्म स्थानीय स्तर पर चल रहा है, phantomjs
संस्करण जानकारी:
- PhantomJS (भी स्थानीय स्तर पर स्थापित): 1.9.16
- कर्मा: 0.12.31
- कर्म-phantomjs-लांचर: 0.1.4
- Ubuntu 14.04 .2 एलटीएस
- नोड 0.10.25
एक ही स्क्रिप्ट मेरे मैक ओएस पर ठीक है (मैंने इसे चलाने से पहले कर्म के वैश्विक इंस्टॉल हटा दिए हैं और यह अभी भी काम करता है)।
उबंटू पर, अगर मैं सीधे phantomjs शुरू करता हूं ./node_modules/phantomjs/bin/phantomjs, यह ठीक ठीक शुरू होता है। ,
> ./node_modules/karma/bin/karma start test/karma.conf.js
DEBUG [config]: autoWatch set to false, because of singleRun
DEBUG [plugin]: Loading karma-* from /srv/detectiveui/node_modules
DEBUG [plugin]: Loading plugin /srv/detectiveui/node_modules/karma-jasmine.
DEBUG [plugin]: Loading plugin /srv/detectiveui/node_modules/karma-phantomjs-launcher.
DEBUG [plugin]: Loading plugin /srv/detectiveui/node_modules/karma-spec-reporter.
INFO [karma]: Karma v0.12.31 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
DEBUG [temp-dir]: Creating temp dir at /tmp/karma-42625347
DEBUG [launcher]: /srv/detectiveui/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs /tmp/karma-42625347/capture.js
DEBUG [launcher]: Process PhantomJS exited with code 2
ERROR [launcher]: Cannot start PhantomJS
DEBUG [temp-dir]: Cleaning temp dir /tmp/karma-42625347
INFO [launcher]: Trying to start PhantomJS again (1/2).
DEBUG [launcher]: Restarting PhantomJS
DEBUG [temp-dir]: Creating temp dir at /tmp/karma-42625347
DEBUG [launcher]: /srv/detectiveui/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs /tmp/karma-42625347/capture.js /tmp/karma-42625347/capture.js
DEBUG [watcher]: Resolved files:
#...List of my files here that look correct...
DEBUG [launcher]: Process PhantomJS exited with code 2
ERROR [launcher]: Cannot start PhantomJS
DEBUG [temp-dir]: Cleaning temp dir /tmp/karma-42625347
INFO [launcher]: Trying to start PhantomJS again (2/2).
DEBUG [launcher]: Restarting PhantomJS
DEBUG [temp-dir]: Creating temp dir at /tmp/karma-42625347
DEBUG [launcher]: /srv/detectiveui/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs /tmp/karma-42625347/capture.js /tmp/karma-42625347/capture.js /tmp/karma-42625347/capture.js
DEBUG [launcher]: Process PhantomJS exited with code 2
ERROR [launcher]: Cannot start PhantomJS
DEBUG [temp-dir]: Cleaning temp dir /tmp/karma-42625347
ERROR [launcher]: PhantomJS failed 2 times (cannot start). Giving up.
DEBUG [karma]: Run complete, exiting.
DEBUG [launcher]: Disconnecting all browsers
मैं भी पोर्ट 9876 पर मैन्युअल रूप से एक नोड सर्वर शुरू करने में सक्षम होने लगते हैं ताकि शायद मुद्दा नहीं है या तो:
यहाँ खोल उत्पादन है।
किसी भी मदद की सराहना की जाएगी। धन्यवाद!
---- अद्यतन
मैं एक नया उबंटू वातावरण बनाया है और एक ही बात फिर से परीक्षण किया है और एक ही त्रुटि मिली।
काम कर रहा ने वही समस्या का सामना करना पड़ रहा है, लेकिन 'बाहर निकलें कोड 1' – TechSpellBound
मेरी पिछली टिप्पणी पर लाइन में, इस मुद्दे (है कि मैं टिप्पणी में उल्लेख किया है) मेरे लिए Ubuntu 14.04 में द्वारा हल कर ली के साथ शुरू प्रोजेक्ट से 'node_modules' निर्देशिका को हटाना (जिसे मैकबुक का उपयोग करके किसी और द्वारा चेक-इन किया गया था)। मैं फिर से 'npm install' चला गया और' node_modules' निर्देशिका को पुनर्निर्मित किया गया था। भविष्य में इस मुद्दे से बचने के लिए हमने 'node_modules' निर्देशिका' .gitignore' में भी जोड़ा है। – TechSpellBound
दिलचस्प, मुझे मौका मिलने पर मुझे फिर से प्रयास करना होगा। मैं एक मैक होस्ट के साथ वग्रेंट का उपयोग कर रहा था, ताकि यह समझा सके। जब मैं बाद में इसका परीक्षण करता हूं तो मैं परिणाम पोस्ट करूंगा। – ccnokes