Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

167
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!