It turns out that you don’t have to run the command again as Administrator, and doing so won’t fix the problem.
Try:
npm cache clean
first.- If that doesn’t fix things, take a look in
%APPDATA%\npm-cache
, or if you’re using PowerShell,$env:APPDATA\npm-cache
.
After cleaning the cache, you may still be left with remnants. Manually remove everything in that directory, and try again. This has always fixed things for me.
As @Crazzymatt was mentioning, as of the npm@5 version and up, we need to use npm cache verify
instead of npm cache clean
. Or else you will get an error as preceding.
npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use ‘npm cache verify’ instead.
(Source: MSDN Blog post)
Related Posts:
- How can I update npm itself?
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- npm ERR! No git binary found in $PATH
- Cannot npm install due to node-gyp: binding.gyp not found
- npm install with error: `gyp` failed with exit code: 1
- “NODE_ENV” is not recognized as an internal or external command, operable command or batch file
- Why is “MINGW64” appearing on my Git bash?
- How can I update NodeJS and NPM to the next versions?
- Using %PROGRAMFILES(x86)% on Windows OS 32bit
- how to get program files x86 env variable?
- Difference between masm32 and masm?
- How to install a previous exact version of a NPM package?
- How do I start PowerShell from Windows Explorer?
- How to solve npm error “npm ERR! code ELIFECYCLE”
- How to solve npm error “npm ERR! code ELIFECYCLE”
- npm check and update package if needed
- A fatal error occurred while creating a TLS client credential. The internal error state is 10013
- After command npm start “Missing script:start” error
- sudo: npm: command not found
- What does “@” mean in Windows batch scripts
- What are good grep tools for Windows? [closed]
- How to run a PowerShell script
- How to resolve Nodejs: Error: ENOENT: no such file or directory
- bash: npm: command not found?
- How do I install and use cURL on Windows?
- How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
- How to list files in windows using command prompt (cmd). I’ve tried using ‘ ls ‘ as in Linux but it shows an error?
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- ow can I find where Python is installed on Windows?
- Please run `npm cache clean`
- Setting Windows PowerShell environment variables
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- What is the difference between npm install and npm run build?
- Why is Windows 32-bit called Windows x86 and not Windows x32?
- How to run a PowerShell script
- npm ERR cb() never called
- NPM clean modules
- ‘node’ is not recognized as an internal or an external command, operable program or batch file while using phonegap/cordova
- How can I open a cmd window in a specific location?
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- Create an empty file on the commandline in windows (like the linux touch command)
- NPM Start not starting local server
- How to solve “The directory is not empty” error when running rmdir command in a batch script?
- “X does not name a type” error in C++
- what is a “dump file” in windows task manager?
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- How do I run Redis on Windows?
- NPM ELIFECYCLE error – using node server.js command
- Need to navigate to a folder in command prompt
- How do I create a Batch file to change an exe installer to Win XP SP3 compatibility mode and launch installer
- What is the –save option for npm install?
- Python virtualenv questions
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- Node.js – SyntaxError: Unexpected token import
- nodemon not working: -bash: nodemon: command not found
- After $npm install, Getting Error: Cannot find module ‘../lib/utils/unsupported.js’
- npm install not working in windows
- Using putty to scp from windows to Linux
- nodemon not found in npm
- Node.js – SyntaxError: Unexpected token import
- nodemon not found in npm
- how to open an mp3 file with c
- What languages are Windows, Mac OS X and Linux written in?
- ExpressJS – throw er Unhandled error event
- npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
- stop all instances of node.js server
- Why am I getting “Error socket hang up” response?
- How to run a makefile in Windows?
- Node.js Port 3000 already in use but it actually isn’t?
- Command Prompt “Net View System Error 6118”
- git clone: Authentication failed for
- How to compile LEX/YACC files on Windows?
- npm – EPERM: operation not permitted on Windows
- How to run ‘sudo’ command in windows
- How to exit Python script in Command Prompt?
- Python command not working in command prompt
- Batch script loop
- What is the ‘realtime’ process priority setting for?
- What Are “npm run dev” and “npm run prod”
- Find the version of an installed npm package
- Verify return code: 20 when testing OpenSSL
- “npm config set registry https://registry.npmjs.org/” is not working in windows bat file
- Command ‘ls’ not working in command prompt
- Command line for looking at specific port
- How to uninstall a Windows Service when there is no executable for it left on the system?
- How do I uninstall a package installed using npm link?
- openssh windows bad owner or permissions
- What is the default password for Postgres
- How to use npm jquery module?
- “X does not name a type” error in C++
- Windows Activator .bat Text
- How To Activate Windows 10
- how to edit or see the source code for dll files
- PermissionError: [WinError 5] Access is denied python using moviepy to write gif
- What is the difference between Cygwin and MinGW?
- Text editor to open big (giant, huge, large) text files
- UnicodeDecodeError: ‘charmap’ codec can’t decode byte X in position Y: character maps to
- Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’
- PermissionError: [WinError 5] Access is denied python using moviepy to write gif