/ / टाइपस्क्रिप्ट 5 मिनट ट्यूटोरियल पर कोणीय 2 ब्रेक के साथ - टाइपस्क्रिप्ट, कोणीय, टाइपस्क्रिप्ट 1.8

प्राप्तकर्ता 5 कोणीय, कोणीय, टाइपस्क्रिप्ट 1.8 पर कोणीय 2 ब्रेक के साथ टाइपस्क्रिप्ट 5 मिनट ट्यूटोरियल

मैं निम्नलिखित का पालन करके टाइपस्क्रिप्ट और कोणीय 2 को समझने का प्रयास कर रहा हूं https://angular.io/guide/quickstart.

मैं विभिन्न चरणों के माध्यम से चला गया लेकिन अंतिम चरण npm start परिणामस्वरूप निम्नलिखित त्रुटियां हैं

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

J:workspaceepimsstypescriptangular2-quickstart>npm start

> angular2-quickstart@1.0.0 start J:workspaceepimsstypescriptangular2-quickstart
> concurrently "npm run tsc:w" "npm run lite"

[0]
[0] > angular2-quickstart@1.0.0 tsc:w J:workspaceepimsstypescriptangular2-quickstart
[0] > tsc -w
[0]
[1]
[1] > angular2-quickstart@1.0.0 lite J:workspaceepimsstypescriptangular2-quickstart
[1] > lite-server
[1]
[0] 7:51:31 PM - Compilation complete. Watching for file changes.
[1] Did not detect a `bs-config.json` or `bs-config.js` override file. Using lite-server defaults...
[1] ** browser-sync options **
[1] { injectChanges: false,
[1]   files: [ "./**/*.{html,htm,css,js}" ],
[1]   server: { baseDir: "./", middleware: [ [Function], [Function] ] } }
[1] [BS] Access URLs:
[1]  ------------------------------------
[1]        Local: http://localhost:3000
[1]     External: http://192.168.2.4:3000
[1]  ------------------------------------
[1]           UI: http://localhost:3001
[1]  UI External: http://192.168.2.4:3001
[1]  ------------------------------------
[1] [BS] Serving files from: ./
[1] [BS] Watching files...
[1] 16.03.09 19:51:36 404 GET /index.html
[1] 16.03.09 19:51:37 404 GET /favicon.ico
[1] 16.03.09 19:51:38 404 GET /favicon.ico

क्या किसी के पास ऐसा ही अनुभव है?

धन्यवाद

उत्तर:

जवाब के लिए 3 № 1

ट्यूटोरियल खत्म करने के बाद आपको नीचे दी गई तस्वीर में एक फ़ोल्डर संरचना मिल जाएगी, अब लाइट-सर्वर से सेवा करने के लिए एप्लिकेशन तथा node_modules फ़ोल्डर जो आपको जोड़ने की जरूरत है bs-config.json angular2-quickstart फ़ोल्डर में फ़ाइल।

यहां छवि विवरण दर्ज करें

{
"port": 3000,
"files": ["/app/**/*.{html,htm,css,js}"],
"server": { "baseDir": ["./app"],
"routes": {
"/node_modules": "node_modules" , "/app": "app", "/app.component": "app"
}
}
}

उत्तर № 2 के लिए 1
[1] [BS] Serving files from: ./

के बाद

[1] 16.03.09 19:51:36 404 GET /index.html
[1] 16.03.09 19:51:37 404 GET /favicon.ico

बस इसका मतलब है कि उन फाइलें (index.html, favicon.ico) उस स्थान में नहीं हैं (./)।

आपको उस स्थान पर ब्राउज़ करने की आवश्यकता होगी जिसमें उन फ़ाइलों को शामिल किया गया है, या उन फ़ाइलों को उस स्थान पर ले जाएं जहां आप ब्राउज़ कर रहे हैं।