Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

4.6K
Visualizações
How to install angular-cli without internet

If you only have the zip file to install angular-cli with - how can it be installed without an internet connection?

about 4 years ago · Santiago Trujillo
4 Respostas
Responde à pergunta

0

With that ZIP only you will not be able to achieve that.

Because within the bin folder, the ng still needs some dependencies.

In order to do that:

  • Download the zip from the official repo: https://github.com/angular/angular-cli/archive/master.zip
  • Unzip it and go into that folder
  • Run npm install or yarn
  • Zip the whole folder again

Now you'll be able to run the CLI on an offline computer if you share that zip by doing:
- Unzip the CLI folder with the node_modules in it
- /path/to/the/folder/bin/ng new my-project

BUT. As this computer is offline, you'll only be able to scaffold a new project without installing it's required dependencies.

Now, if you want to build a project on that offline computer, you'll need something more:

On the online computer:
- install @angular/cli yarn global add @angular/cli (or use your zip)
- create a new empty project while online: ng new base-project
(wait for yarn install or npm install to finish)
- zip the node_modules folder, the one within the new project
(as node_modules_backup.zip for ex, and brace yourself... It's going to take a long time I guess)

On the offline computer
- Share the ZIP from the new project (with USB for ex) - Create your project: /path/to/the/folder/bin/ng new my-project --skip-install
- Unzip the node_modules_backup.zip into the newly created project

Now running /path/to/the/folder/bin/ng serve should work.

about 4 years ago · Santiago Trujillo Relatório

0

----online machine-----

  1. Install node by using the executable files downloaded from the official node website.
  2. Install the @angular/cli globally on the on-line machine.
  3. Check the C:\Users\Admin\AppData\Roaming folder.
  4. Zip the npm and npm_cache folder.
  5. Transfer the above zip file and node executable to the offline machine.
  6. Create the new project in angular
  7. zip the node_module folder inside the created project and transfer it to the offline machine.

----Offline Machine------

  1. Install node from its executable
  2. Unzip the npm and npm_cache folder and move it to the C:\Users\Admin\AppData\Roaming folder.
  3. Run the following command to install the @angular/cli and its dependencies
npm i @angular/cli -g --cache MY_CACHE_FOLDER --cache-min 999999999 --no-shrinkwrap
  1. Now create the new angular project. It will show some errors but don't worry.
  2. Unzip and move the node_module folder inside the new project.
  3. Now, you can work/run on the project as usual.
about 4 years ago · Santiago Trujillo Relatório

0

This would be a good solution for your case.

npm i @angular/cli -g --cache MY_CACHE_FOLDER --cache-min 999999999 --no-shrinkwrap

You can find full article here.

about 4 years ago · Santiago Trujillo Relatório

0

donde puedo descargar todos los archivos necesarios para instalar angular de manera off, no tengo ni tan siquiera el archivo zip

about 2 years ago · Denis Amador Riverda Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda