/ / बोवर कंपोनेंट फोल्डर येमन जनरेट की गई वेब साइट से गायब है - ग्रंटज, योमन, बोवर, योमन-जनरेटर

यौवन उत्पन्न वेब साइट से बोवर घटक फ़ोल्डर गायब है - gruntjs, yeoman, bower, yeoman-generator

ये सभी कमांड हैं जो मैं चलाती हूं, बस मामले में:

नोड संस्करण:

> node -v

v0.10.21।

स्थापित कर रहा है यो:

> npm install -g yo

इससे कोई त्रुटि या चेतावनी नहीं मिली।

स्थापित कर रहा है जनरेटर-webapp:

> npm install -g generator-webapp
npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.21","npm":"1.3.9"})
npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.21","npm":"1.3.9"})
npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.21","npm":"1.3.9"})
npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.21","npm":"1.3.9"})
npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.21","npm":"1.3.9"})

निर्देशिका बनाना ... कितना उपयोगी है

> md wat
> cd wat

मचान वेब अप्प

wat> yo webapp

ये विकल्प हैं जिनका मैंने उपयोग किया है:

Out of the box I include HTML5 Boilerplate and jQuery.
[?] What more would you like?
[ ] Bootstrap for Sass
>[X] RequireJS
[ ] Modernizr

अब इससे बहुत दुखी संदेश मिले:

- npm WARN package.json wat@0.0.0 No description
npm WARN package.json wat@0.0.0 No repository field.
npm WARN package.json wat@0.0.0 No README data
...
npm http GET https://registry.npmjs.org/grunt-svgmin
npm http GET https://registry.npmjs.org/grunt-concurrent
npmbower ENOGIT         git is not installed or not in the PATH
http 304 https://registry.npmjs.org/grunt-contrib-requirejs
npm http 304 https://registry.npmjs.org/grunt
npm http 408 https://registry.npmjs.org/grunt-contrib-imagemin
npm ERR! registry error parsing json
npm http 408 https://registry.npmjs.org/grunt-contrib-watch
npm ERR! registry error parsing json
npm http 304 https://registry.npmjs.org/grunt-bower-requirejs
npm http 304 https://registry.npmjs.org/grunt-contrib-jshint
...
npm http 408 https://registry.npmjs.org/grunt-usemin
npm ERR! registry error parsing json
npm http 408 https://registry.npmjs.org/grunt-contrib-connect
npm ERR! registry error parsing json
...
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm WARN deprecated object-keys@0.2.0: Please update to the latest object-keys
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
...
npm WARN prefer global bower@1.2.7 should be installed with -g

चल रहा सर्वर:

> grunt server

Running "copy:styles" (copy) task
Warning: Running "compass:dist" (compass) task
Warning: You need to have Ruby and Compass installed and in your system PATH for this task to work. More info: https://github.com/gruntjs/grunt-contrib-compass Use --force to continue. Use --force to continue.

> grunt server --force

Warning:
N:watnode_modulesgrunt-contrib-compassnode_modulestmplibtmp.js:261
throw err;
^
TypeError: Cannot read property "stdout" of undefined
at compile (N:watnode_modulesgrunt-contrib-compasstaskscompass.js:39:10)
at N:watnode_modulesgrunt-contrib-compasstaskscompass.js:70:7
at N:watnode_modulesgrunt-contrib-compasstaskslibcompass.js:121:11

at _fileCreated (N:watnode_modulesgrunt-contrib-compassnode_modules
tmplibtmp.js:172:7)
at OpenReq.Req.done (N:watnode_modulesgrunt-contrib-imageminnode_mod
ulesgifsiclenode_modulesbin-wrappernode_modulesdownloadnode_modulesdecomp
ressnode_modulestarnode_modulesfstreamnode_modulesgraceful-fsgraceful-fs.
js:142:5)
at OpenReq.done (N:watnode_modulesgrunt-contrib-imageminnode_modules
gifsiclenode_modulesbin-wrappernode_modulesdownloadnode_modulesdecompress
node_modulestarnode_modulesfstreamnode_modulesgraceful-fsgraceful-fs.js:6
4:22)
at OpenReq.Req.done (N:watnode_modulesgrunt-contrib-imageminnode_mod
ulesgifsiclenode_modulesbin-wrappernode_modulesdownloadnode_modulesdecomp
ressnode_modulesrimrafnode_modulesgraceful-fsgraceful-fs.js:142:5)
at OpenReq.done (N:watnode_modulesgrunt-contrib-imageminnode_modules
gifsiclenode_modulesbin-wrappernode_modulesdownloadnode_modulesdecompress
node_modulesrimrafnode_modulesgraceful-fsgraceful-fs.js:64:22)
at OpenReq.Req.done (N:watnode_modulesgrunt-contrib-imageminnode_mod
ulespngquant-binnode_modulesbin-wrappernode_modulesdownloadnode_modulesde
compressnode_modulestarnode_modulesfstreamnode_modulesgraceful-fsgraceful
-fs.js:142:5)
at OpenReq.done (N:watnode_modulesgrunt-contrib-imageminnode_modules
pngquant-binnode_modulesbin-wrappernode_modulesdownloadnode_modulesdecomp
ressnode_modulestarnode_modulesfstreamnode_modulesgraceful-fsgraceful-fs.
js:64:22) Used --force, continuing.

Running "compass:dist" (compass) task
Warning: You need to have Ruby and Compass installed and in your system PATH for
this task to work. More info: https://github.com/gruntjs/grunt-contrib-compass
Used --force, continuing.

Running "copy:styles" (copy) task

Running "autoprefixer:dist" (autoprefixer) task
File ".tmp/styles/main.css" created.

Running "connect:livereload" (connect) task
Started connect web server on 127.0.0.1:9000.

Running "watch" task
Waiting...

अब मुद्दा:

जब ब्राउज़र खुलता है तो मेरे पास ये दोनों 404 हैं ...

Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1:9000/bower_components/jquery/jquery.js
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1:9000/bower_components/requirejs/require.js

मैं मैन्युअल रूप से फ़ोल्डर बना सकता हूं और फाइलों को अंदर रख सकता हूं, लेकिन इस मचान उपकरण का उपयोग करने का क्या मतलब होगा।

मैं क्या खो रहा हूँ? मैं येओमान के लिए नया हूं, लेकिन द योमन का पेज शुरू हो रहा है क्रिस्टल स्पष्ट है।

उत्तर:

उत्तर № 1 के लिए 4

आपको माणिक और कम्पास स्थापित करने की आवश्यकता है। यह वहीं कहता है।

  1. https://www.ruby-lang.org/en/downloads/

  2. http://compass-style.org/install/


उत्तर № 2 के लिए 1

मैंने बिना किसी समस्या के नोड 0.10.20 और एनपीएम 1.3.6 के साथ कदम उठाए हैं।

मुझे क्या आश्चर्य है आप wanted: {"node":"0.8.x"} इंजन के लिए। अधिकांश पैकेजों की आवश्यकता होती है ">=0.8.0"। जब तक आपके पास एक अनुकूलित पैकेज न हो। कहीं न कहीं फ़ाइल डाउनलोड दूषित हो गया था।

आप npm कॉन्फ़िगरेशन फ़ाइल में देख सकते हैं और पैकेज की सामग्री जोड़ सकते हैं। प्रश्न में (मेरा / usr / lib / node_modules / npm लिनक्स पर हैं)