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

168
Visualizações
npm install would removed external JS/CSS files

I installed jquery-datatimepicker by adding jquery.datetimepicker.min.css and jquery.datetimepicker.full.min.js in angular.json and put them in node_modules/datetimepick folder

angular.json:

        ..
        "styles": [
          "src/styles.scss",
          "node_modules/datatables.net-dt/css/jquery.dataTables.css",
          "node_modules/datatables.net-responsive-dt/css/responsive.dataTables.css",
          "node_modules/bootstrap/dist/css/bootstrap.css",
          "node_modules/bootstrap/dist/css/bootstrap-reboot.css",
          "node_modules/bootstrap/dist/css/bootstrap-grid.css",
          "node_modules/datetimepicker/jquery.datetimepicker.min.css"
        ],
        "scripts": [
          "node_modules/jquery/dist/jquery.min.js",
          "node_modules/jquery/dist/popper-1.11.0.min.js",
          "node_modules/bootstrap/dist/js/bootstrap.js",
          "node_modules/dropify/dist/js/dropify.js",
          "node_modules/datatables.net/js/jquery.dataTables.js",
          "node_modules/datatables.net-responsive/js/dataTables.responsive.js",
          "node_modules/datetimepicker/jquery.datetimepicker.full.min.js"
        ]

But every time when I use npm install or npm install new-package, the node_modules/datetimepicker/ folder always got removed and I need to add the folder and files by myself.

Any suggestions could solve this problem?

Angular CLI: 8.3.8
Node: 13.13.0
OS: win32 x64
Angular: 8.2.9

Note: I have tried this solution and I only want to use the external JS/CSS solution.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

This is obvious because in your package.json file this package is not available and npm install all the dependencies from the package.json. try to install

npm i jquery-datepicker

now you will have all the dependencies along with jquery-datepicker

if jquery-datepicker is not available in the package.json npm will not install it.

about 4 years ago · Juan Pablo Isaza 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