New to GitHub, how to run the commands on Windows?

The specific command you ran only works on linux because:

  • sudo is a linux command (or *nix command in general)
  • apt-get is a linux command (specifically ubuntu/debian command)
  • install is a argument to apt-get command
  • npm is a package

So the line:

sudo apt-get install npm

Hey package-manager(apt-get), install the package (npm) and do it as if I’m the superuser (sudo).

So the answer to your question is you cannot run linux commands from windows
But, you can run git commands to interact with github from Windows (using Git bash for example)

You have use the ‘git’ program to interact with github. (Git bash installs this program on Windows. If you were using linux you’d install git using “apt-get install git”)

Here’s a snippet from the git-for-windows webpage [ ]

Git BASH Git for Windows provides a BASH emulation used to run Git
from the command line. *NIX users should feel right at home, as the
BASH emulation behaves just like the “git” command in LINUX and UNIX

Browse More Popular Posts

Leave a Comment