Category: Uncategorized

  • Node Aliases for Globally Installed Packages on Mac

    Recently I posted on how globally installed node packages are added to the Windows command prompt. Today I look at the same for Mac. Unlike on Windows, there is no output for “whereis ng”. Examining the path (“echo $PATH”) provides /usr/local/bin. In this folder are many links, including many for node packages. For example, npm […]

  • Node Aliases for Globally Installed Packages on Windows

    I was curious how that after globally installing a node package using npm, I was able to run new commands such as “ng” at the command prompt in Windows. Where did npm download these packages to? How did these new commands get injected into the standard command prompt. The first place I looked was Google, […]

  • Show Available NPM Package Versions

    Since I have been working with node and npm, I find myself updating packages and dealing with package dependencies. It is helpful to see a list of all versions currently published in npm for a given package. Here is the syntax: npm show <package-name> versions Example > npm show bootstrap-css-only versions [ ‘2.3.2-1’, ‘2.3.2’, ‘3.3.5’, […]