मैं यमन वेबपेज पर codelab के साथ पीछा कर रहा हूं, और अब तक मैं साथ चलने में कामयाब रहा हूं (मेरे विकास पर्यावरण को प्राप्त करने वाले कुछ प्रमुख हिचकी के साथ, लेकिन अब यह कोई त्रुटि नहीं लौटाता है)।योन और बॉवर बूटस्ट्रैप सीएसएस (एंगुलरजेएस जनरेटर) नहीं जोड़ रहा है
इसलिए मैंने अपना प्रोजेक्ट फ़ोल्डर बनाया और yo
चलाया, AngularJS का चयन किया और चीज़ चलाएं। काफी प्रक्रिया में जल्द ही मैं एक शीघ्र ? Overwrite package.json?
मैं y
साथ जवाब मिला है और निम्न चेतावनी मिल गया:
npm WARN package.json [email protected] No license field.
npm WARN peerDependencies The peer dependency [email protected]>=0.9 included from karma-jasmine will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency [email protected]* included from karma-jasmine will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency [email protected]>=0.9 included from karma-phantomjs-launcher will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency [email protected]>=1.9 included from karma-phantomjs-launcher will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency [email protected]~0.12.0 included from grunt-karma will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN optional dep failed, continuing [email protected]
उसके बाद, यह समाप्त हो गया यह क्या कर रहा था, इसलिए मैं की वजह से फिर से bower install
भाग गया बस सुनिश्चित करने के (package.json बात), और फिर grunt serve
। अब grunt कहते हैं, त्रुटियों के बिना, लेकिन मेरा पृष्ठ केवल main.css
लोड करता है। मुझे लगता है कि bootstrap.css
फ़ाइल गुम है। This ऐसा लगता है, जब कोडेलब निर्देश कहते हैं कि यह this जैसा दिखना चाहिए।
यदि आपको जेनरेट किए गए बारे में और जानकारी चाहिए, तो यहां GitHub repository link है।
जो भी मैं गलत कर रहा हूं उस पर कोई अंतर्दृष्टि (यदि कुछ भी हो) का स्वागत है।
इसे संपादित करने से पहले, मेरी बूटस्ट्रैप लाइन में संस्करण संख्या से पहले '^' था (जैसे "कोणीय": "^ 1.3.0" ')। जो भी करता है उस पर कोई विचार, और यदि मुझे बूटस्ट्रैप संस्करण से पहले इसे वापस रखना चाहिए? इसके अलावा, साइट अब दिखती है, इसलिए मैं कोडेलैब के साथ आगे बढ़ने के लिए तैयार हूं। धन्यवाद –
मेरा मानना है कि इसका मतलब है कि आवश्यकता 1.3.0 से अधिक है। तो बूटस्ट्रैप के लिए यह "बूटस्ट्रैप" था: "^ 3.2.0", जिसका मतलब 3.2.0 से अधिक है जो कुछ भी स्थापित करें। इसलिए यह नवीनतम 3.3.5 चलाता है और स्थापित करता है जो काम नहीं करता है।^के बिना इसे 3.3.4 पर सेट करना कहता है कि केवल इस संस्करण को स्थापित करें, कुछ भी ज्यादा नहीं। – chipzilla
@chipzilla आपको धन्यवाद, आपने अपना पहला ऐप बचाया :) –