Npm Brew


This guide goes through the various methods used to install webpack.


The Missing Package Manager for macOS (or Linux). It’s all Git and Ruby underneath, so hack away with the knowledge that you can easily revert your modifications and merge upstream updates. I brew unlink node and yet the /usr/local/bin/npm symlink remains. If I manually remove it and proceed, when I go back to brew link node it is not replaced. I can only get it back via brew reinstall node. Brew install node Other package managers for Linux and Windows are listed in nvm is a popular way to run Node.js. It allows you to easily switch the Node.js version, and install new versions to try and easily rollback if something breaks, for example.


Brew is a NodeJS class that keeps source files compiled and bundled, available in memory. Dynamically generates a timetable in HTML according to provided options. Published 0.2.0. 5 years ago.

Sophos cost. Before we begin, make sure you have a fresh version of Node.js installed. The current Long Term Support (LTS) release is an ideal starting point. You may run into a variety of issues with the older versions as they may be missing functionality webpack and/or its related packages require.

Local Installation

The latest webpack release is:

To install the latest release or a specific version, run one of the following commands:


Whether to use --save-dev or not depends on your use cases. Say you're using webpack only for bundling, then it's suggested that you install it with --save-dev option since you're not going to include webpack in your production build. Otherwise you can ignore --save-dev.

If you're using webpack v4 or later and want to call webpack from the command line, you'll also need to install the CLI.

Installing locally is what we recommend for most projects. This makes it easier to upgrade projects individually when breaking changes are introduced. Typically webpack is run via one or more npm scripts which will look for a webpack installation in your local node_modules directory:


To run the local installation of webpack you can access its binary version as node_modules/.bin/webpack. Alternatively, if you are using npm v5.2.0 or greater, you can run npx webpack to do it.

Global Installation

The following NPM installation will make webpack available globally:


Note that this is not a recommended practice. Installing globally locks you down to a specific version of webpack and could fail in projects that use a different version.


Bleeding Edge

If you are enthusiastic about using the latest that webpack has to offer, you can install beta versions or even directly from the webpack repository using the following commands:

Brew node

Npm Brew Install

Take caution when installing these bleeding edge releases! They may still contain bugs and therefore should not be used in production.