# NodeJS and NPM

Install NodeJS with NPM (Package Manager) via the Installer

Since we use some private packages, you need to set the NPM registry to npm.onstuimig.nl like this:

npm set registry http://npm.onstuimig.nl:4873
npm login

You can use the credentials given to you at the project brief.

If you want to update your NPM installation to the latest available version:

npm install npm@latest -g

# Install dependencies

Open your terminal and go to folder where the package.json and webpack.config.js are located. You can find these files here:

  • the root for projects without Docker
  • /www/ for Docker projects.

From this folder, run the following command in the terminal:

npm install

This will install all dependencies (Webpack, Sass, plugins, libraries) for this project. You'll see a node_modules folder being added in the current folder.