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

169
Views
npm removes all packages at install or update

I like to start using Node.js, so I made a plain vanilla installation on my Windows 10 computer. When I try to install additional packages (e.g. npm install luxon) or npm update then it removes all packages. It's basically a self-destruction, I have to re-install again to make it working:

C:\Programs\nodejs>npm update

removed 221 packages, and audited 1 package in 824ms

found 0 vulnerabilities


C:\Programs\nodejs>npm ls
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'C:\Programs\nodejs\node_modules\npm\bin\npm-cli.js'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v17.0.1
node:internal/modules/cjs/loader:936
  throw err;
  ^

I tried version 16.13.0 and 17.0.1, both .msi file and .zip - all the same. Is there anything I missed.

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