Tag: Node.js
-
Find unused npm dependencies
As much as I love to sling code, I love that we live in a world where you can stand on the shoulders of giants and easily leverage other people’s hard work by way of Open Source libraries. Simply referred to as “dependencies”, these little code gems can save a…
-
Uninstalling dev dependencies with npm
While looking into some deployment issues recently, I ran into some logic that was in dire need of being refactored. The logic in the build process was installing all dependencies with npm, then removing the node_modules directory, just to install the production dependencies again. Yes, you read that right, the…
-
Recursively create directories with Node.js
Recently, while working on a new project, I needed to create a series of nested directories. From the command-line, it’s easy enough, just pass -p to mkdir and it will create all of the parent directories automatically. With modern versions of Node.js, specifically 10 and above, you can achieve the…
-
Displaying an entire object with Node.js
For the most part, I do the majority of my debugging with Node.js / JavaScript’s console.log(). It’s quick and dirty but it gets me what I’m looking for. The exception being when I am working with larger objects, specifically any object that is nested three or more levels deep. Here’s…
-
How to install Node.js v15.x on Ubuntu
New Ubuntu and Node.js versions released recently. While neither is a long-term service (LTS) release, they still represent the best that both parties have to offer. Even though Ubuntu 20.10 is here, it’s still shipping with an older version of Node.js, v12.x to be exact. If you’re like me, you…
-
Allow dots in paths with webpack-dev-server
Generally speaking, I don’t use dots (periods, full stops, whatever else they may be called) in the URI for a website. That was, until I made the . an allowable character for user names on one of my projects. Allowing the character was a big deal at all with Express.js…
-
How to install Node.js v14.x on Debian and Ubuntu
Big week for both the Node.js universe and the Ubuntu universe. Node.js version 14.x dropped on Tuesday the 21st with Ubuntu 20.04 LTS coming in hot on Thursday the 23rd. Both releases are important because they are both long term support releases. Node.js v14.x isn’t currently LTS, but it will…
-
How to install Node.js v14.x on Ubuntu 20.04 LTS
The latest and greatest long term service release of Ubuntu is here and there’s no reason that you shouldn’t get to enjoy the latest and greatest (soon to be) long term service release of Node.js as well. Follow these quick and easy steps to install Node.js v14.x on your shiney…
-
How to install Node.js v14.x on Ubuntu 19.04
Just because you’re a couple of versions behind the current Ubuntu release doesn’t mean you shouldn’t get to take advantage of the latest version of Node.js. Follow these quick and easy steps to install Node.js v14.x on your Ubuntu 19.04 system.<h2 id=”getting-started”>Getting started</h2> Before we can install Node.js we need…
-
How to install Node.js v14.x on Debian 10
Already running the latest and greatest version of Debian, version 10, and want to run the latest and greatest version of Node.js? If so, follow these quick and easy steps and you’ll be off to the races with Node.js v14.x.<h2 id=”getting-started”>Getting started</h2> Before we can install Node.js we need to…