How to install node modules offline?

I had this difficulty and it took me a while to figure out how to install nodejs modules offline.

I always imagined that it would be simple …. In the back of my head I thought that the gap is as simple as this:

First download the github module into a folder;
Then run the code replacing the path to the folder the module was saved to (when you downloaded from github) and the modulo name;

npm install modulo_name –offline-installers=”C:\your\folder”

Very simple!! 🙂

npm install – erro “VCBuild.exe”

Se você usa windows, tentou instalar um package nodejs e teve o seguinte erro:

Eu resolvi da seginte forma:

1º instale o .NET Framework 2.0 SDK

2º instale também o Visual Studio 2005

Por ultimo abra o prompt de comamando com administrador e execute o seguinte código: npm install –global –production windows-build-tools

Espere a instalção finalizar (tenha paciência… vai demorar um pouco)

Gif

Referência:  https://www.npmjs.com/package/windows-build-tools