Skip to main content

Did Node.js Misbehave in Your Windows?

It appears to. But hold it: Is it node.js at fault or your good self?

Its probably you, dear earthling. yet again, you got mixed up and now, when you type
> node main.js,

it rudely answers:

'node' is not recognized as an internal or external command !

After going all over and getting excruciatingly detailed help on how to set up a PATH statement in Windows (as if you were a students of Computer 101), you are ready to pull out all your (remaining?) hair (its actually easier to cut by the way, and less painful).

However, check this most simple possibility: You clicked the wrong button during your installation.

Watch and learn:

1. Step 1: Download the 32bit or 64bit node.js installer file
2. Launch the installer and you get the following:


3. Problems may occur in the next screens that looks like this:


4. If you click on the little arrow in each button, its important to read the options offered as illustrated below:

  The options are:
  • Will be installed on local hard drive
  • Entire feature will be installed on local hard drive [preferred choice]
  • Feature will be installed when required [trouble!!]
 The options in the screen blow are more expansive but note that the safest options is still: Entire feature will be installed on local hard drive


 5. If you chose "Feature will be installed when required" you are looking for serious trouble because Windows is very unlikely to do as promised - it will NOT install the features when required, therefore,  node.exe will be absent and hence the message "'node' is not recognized as an internal or external command !"

It's that simple.

 So much hair lost for so little... But who to blame except your selves for not carefully studying the  options?

Therefore, if you have this frustrating problem reinstall node.js  and carefully observe the commandments.

Surely much hair will be saved - from being uprooted that is, not from  the fires and worms of the valley of Ben Hinnom: that's an entirely separate matter.

Bon Voyage, mes frères et mes sœurs


Comments

Popular posts from this blog

How to Install Visual Basic 2017 Offline

This page offers a way to avoid the long and error-prone online installation of Visual Studio which is a massive package. Our interest is limited to Visual Basic and ASP.Net. One can, later, add other tools such as C# and C++. In this page, "VS" refers to Visual Studio. Installing Visual Basic 2017 Offline is not a simple process because Visual Basic 2017 is a part of Visual Studio 2017 that comes as one huge package (up to 35GB) in three versions: Community Edition (Free) Professional Edition (intended for a few people) Enterprise (intended for larger software teams)  Visual Studio by default uses a web-based install process that starts by downloading one of three the bootstrapper package from the VS download page . When you run the bootstraper, it will initiate download of the Visual Studio components that may be up to 35GB in size and takes a very long time to complete. The purpose of this page is to explain how to avoid the headache of this long and tedious

How to Install Packet Tracer 6.0.1 for Linux

This article is intended to help me remember the installation process for Cisco Packet Tracer 6 details of which seems to be hard to come by on the web. 1. Log in in to your Cisco Netspace account. Yes, you need to be logged in. 2. The " Download PT 6.0.1 " link on is on the NetSpace home page. 3. Click this " Cisco Packet Tracer " link shown below the folder icon as shown in the figure below: 4. Select  Cisco Packet Tracer 6.0.1 5. Select download location. 6. After completion of download, use your file manager to open that folder and rename the file to something such as "CPT6". It is a shell script so no file extension is required. 7. Change the file permissions to executable using command: sudo chmod 777 CPT6 from a terminal window opened in the download directory. This assumes your downloaded file is renamed CPT6 8. Launch the file with command: ./CPT6 from the terminal window. You will get the message: Self extracting archive... We

Android Applications with Intellij IDEA - 1

This article applies to Android applications in Windows using IntelliJ IDEA development tools. Windows 7 was used in this example but the explanation will work for other recent versions of Windows. It is quite a task learning how to use mobile application development tools. This page describes how to digitally sign your .apk file which is the  Android application package file. In short, your Android program file. Once you have created an APK file to launch it, simply copy to your device and use the Android file manager to install it. The picture below shows the digital signature keystore file, the unsigned APK file and the signed APK file. The procedure of signing the APK file is quite straighforward but first you must ensure your Java JDK is properly installed and that the Java tools are accessible on your commandline (Windows command console - what used to be called the DOS window). Most important is that your PATH environmental variable (In Windows 7 find this at: Control