আগামী ১৫ ডিসেম্বর -২০১৭ তারিখ থেকে শুরু হচ্ছে পাঁচ মাস ব্যাপী Professional Web Design and Development with HTML, CSS PHP,MySQL,JavaScript, AJAX, JQUERY, Bootstrap and Live Project কোর্সের ৮৭ তম ব্যাচ এবং ২৬ ডিসেম্বর-২০১৭ তারিখ থেকে শুরু হচ্ছে চার মাস ব্যাপী Zend PHP-7 Certified PHP Engineering (Advance PHP) কোর্সের ৩৫ তম ব্যাচ। প্রত্যেকটি কোর্স এর ফী নির্ধারণ করা হয়েছে ৩০,০০০/= আগ্রহীদেরকে অতিসত্বর মাসুদ আলম স্যার এর সাথে যোগাযোগ করতে অনুরোধ করা যাচ্ছে। স্যার এর মোবাইল: 01722 81 75 91

Installing node.js

Installation of Node.js

It is very easy to install node.js in  any OS you are using and the most interesting part is that installing node on ubuntu is much easier!!!!

You can run node in any of your preferred OS but I recommend to work with node on ubuntu or on linux rather than WINDOWS. Because, there is some module for example bcrypt.js(most famous modules used in node and its framework) that you face problems with while installing these modules. But, don’t worry you can still use windows to run node js.

Installing node on windows

  1. Go to https://nodejs.org/en/download/  the official website for node js.
  2. There you find your installation files according to your PC’s environment.
  3. Download window installer (.msi) file or window binary(.exe) file in respect to your OS i.e 32-bit or 64bit
  4. Now just install it by clicking next,next………,finish as like installing typical software on windows.
  5. You are done.Really, you installed Node.js

Setting the installed node.js path as global:(windows 10 and 8)

In windows, we need to set the node.js path so that we can use node command elsewhere .Given bellow is the way to set the node js path(same as you set for php or java)

  1. In Search, search for and then select: System (Control Panel)
  2. Click the Advanced system settings link.
  3. Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
  4. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable.It is the path of your installed node.exe; it may be somewhere in your C:\ drive
  5. Click OK. Close all remaining windows by clicking OK.

For being sure it is installed or not just open your cmd and write node and press enter. If is shows many options then it is ok otherwise check again.

Note: Restarting your machine after installing node js is a MUST.

Installing node js on ubuntu using maintained ubuntu package manager:

As I said, It is quite simple:

  1. Add the Node.js-maintained repositories to your Ubuntu package source list with this command:
    curl sL https://deb.nodesource.com/setup | sudo bash –
  2. Now write the following command:sudo apt-get install nodejsscreenshot-from-2016-10-24-21-36-27
  3. That’s it node installed but one more thing to install. And, it is npm that I talked a bit about in my last post. NPM is node package manager . I will describe it later when we will use it. Let’s go to see how to install npm:screenshot-from-2016-10-25-00-02-21
  4. Now you can test it using the following command given on the snapshot: node -v (to get the version of your node.js)screenshot-from-2016-10-25-00-50-01
  5. Ok now let’s start node.js operations on command line.All commands same for any OS screenshot-from-2016-10-25-01-04-32These are just for the warm up up with node. In the next part, I will show you how to create node server and run a program

 

 

 

 

Hi, I am Md. Asif Rahman working on Opensource tech for last 4 years. I have working experience on PHP,C#,Codeigniter, Laravel, Node js, Angular js ,Express js , Sails js and others . Basically, I am a business graduate did my BBA(MIS) and MBA(MIS) from University of Dhaka but chose to be a programmer. I served several years in training center and currently working as a software engineer at ICT-Euro Ltd.

Leave a Reply

Your email address will not be published. Required fields are marked *