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

632
Views
Update npm installed packages - npm ERR! code EINVALIDPACKAGENAME

I'm trying to update my node modules globally. I'm using this command

sudo npm update -g 

but it will produce thise error in terminal

npm ERR! code EINVALIDPACKAGENAME
npm ERR! Invalid package name ".DS_Store": name cannot start with a period

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/dev/.npm/_logs/2021-04-24T15_59_25_014Z-debug.log

I think that the command will scan the folder and find macOS .DS_Store file.

How I can fix this?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

for me doing this solve my problem :

find /usr/local/lib/node_modules/ -name '.DS_Store' -type f -delete 

It search all .DS_Store and remove it in the global node_modules folder ( on Mac )

over 4 years ago · Santiago Trujillo Report

0

You can try this one,

sudo npm install --global npm

I think this is going to work for you

over 4 years ago · Santiago Trujillo 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!