-1
$ npm install sillyname
npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown error, write
npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown error, write
npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown error, write
npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown error, write
npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown error, write
npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown error, write
npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown error, write
npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown error, write
npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown error, write
npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown error, write

removed 4 packages, and changed 1 package in 3s

Was installing an npm package called "sillyname", Angela Yu webdev task. Got the above error a lot of times. Let me know the solution. Please, and thank you :) (if anyone gets the reference to the dialogue)

2 Answers2

0

It's possible your problem be related to the NPM package manager cache or Disk Space.

  1. Clear your cache:
npm cache clean --force
  1. Update npm:
npm install -g npm
  1. Reinstall sillyname
npm install sillyname

Also check your Disk space.

LW001
  • 2,452
  • 6
  • 27
  • 36
  • Facing an issue there tooXD $ npm cache clearn --force npm WARN using --force Recommended protections disabled. npm ERR! code EUSAGE npm ERR! npm ERR! Manipulates packages cache npm ERR! npm ERR! Usage: npm ERR! npm cache add npm ERR! npm cache clean [] npm ERR! npm cache ls [@] npm ERR! npm cache verify npm ERR! npm ERR! Options: npm ERR! [--cache ] npm ERR! npm ERR! Run "npm help cache" for more info – Krounosity Aug 05 '23 at 15:36
0

Got the solution.

I was doing that work on my google drive, and that is the only thing done differently.

The installing of external node modules worked for me when I installed them in a directory which is directly in the hard drive or SSD of your PC. I am not sure about pendrives and external hard drives.

so yeah, just change the location of your document/file/folder to your local hard drive and the error won't come.