حالولت اليوم ان ابدا في تعلم node.js
اتبعت شرح بسيط الموجود على الصفحة الرئيسية للموقع
انشئت ملف example.js
الكود
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at
ثم حاولت تنفيده بعد ان دخلت لمسار الملف node example.js
لكن يعطي الخطا التالي
اين اخطات
يرجى الدخول لحسابك أو تسجيل حساب لتستطيع إضافة تعليق
حساب جديد
دخول