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
- how to get program files x86 env variable?
- A fatal error occurred while creating a TLS client credential. The internal error state is 10013
- sudo: npm: command not found
- What are good grep tools for Windows? [closed]
- How to resolve Nodejs: Error: ENOENT: no such file or directory
- bash: npm: command not found?
- 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
- Please run `npm cache clean`
- Setting Windows PowerShell environment variables
- What is the difference between npm install and npm run build?
- How to run a PowerShell script
- How can I open a cmd window in a specific location?
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- NPM Start not starting local server
- How to solve “The directory is not empty” error when running rmdir command in a batch script?
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- NPM ELIFECYCLE error – using node server.js command
- What is the –save option for npm install?
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- nodemon not working: -bash: nodemon: command not found
- npm install not working in windows
- What languages are Windows, Mac OS X and Linux written in?
- ExpressJS – throw er Unhandled error event
- stop all instances of node.js server
- git clone: Authentication failed for
- How to compile LEX/YACC files on Windows?
- npm – EPERM: operation not permitted on Windows
- Python command not working in command prompt
- What Are “npm run dev” and “npm run prod”
- Find the version of an installed npm package
- “npm config set registry https://registry.npmjs.org/” is not working in windows bat file
- Command ‘ls’ not working in command prompt
- How do I uninstall a package installed using npm link?
- openssh windows bad owner or permissions
- Windows Activator .bat Text
- how to edit or see the source code for dll files
- Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’
- ExpressJS – throw er Unhandled error event
- Error “Cannot find module ‘npmlog'” after “npm update -g”
- What is the difference between –save and –save-dev?
- Xampp MySQL not starting – “Attempting to start MySQL service…”
- error: This is probably not a problem with npm. There is likely additional logging output above
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- What is the ASCII Code of ½?
- Node update a specific package
- Docker for Windows error: “Hardware assisted virtualization and data execution protection must be enabled in the BIOS”
- Why Local Users and Groups is missing in Computer Management on Windows 10 Home?
- CentOS error – sudo: effective uid is not 0, is sudo installed setuid root?
- What is Windows Fabric and how to host services in it?
- Python not working in the command line of git bash
- How to run PowerShell in CMD
- How to open an elevated cmd using command line for Windows?
- SVN admin management GUI tool
- cat not recognised as an internal or external command
- `node-pre-gyp install –fallback-to-build` failed during MeanJS installation on OSX
- Bridged networking not working in Virtualbox under Windows 10
- node.js: cannot find module ‘request’
- How to send a simple email from a Windows batch file?
- How can I run a program from a batch file without leaving the console open after the program starts?
- What exactly is the scope of Access Violation ‘0xc0000005’?
- How can I do GUI programming in C?
- npm install errors with Error: ENOENT, chmod
- What does /p mean in set /p?
- NPM self_signed_cert_in_chain
- npm WARN deprecated [email protected]: Use uuid module instead
- npm WARN package.json: No repository field
- How do I get the current username in Windows PowerShell?
- Maximum call stack size exceeded on npm install
- batch file from scheduled task returns code 2147942401
- CALL command vs. START with /WAIT option
- BAT file to map to network drive without running as admin
- mysql community server vs mysql installer
- Aliases in Windows command prompt
- What is a Windows Handle?
- How do you uninstall all dependencies listed in package.json (NPM)?
- Calling dir in cmd prints out: “Volume in drive C has no label.”
- Difference between $? and $LastExitCode in PowerShell
- How to use/install GNU binutils (objdump)
- events.js: 141 throw er; // Unhandled ‘error’ event
- NPM warn message about deprecated package
- Webpack – webpack-dev-server: command not found
- npm install hangs
- The requested operation cannot be performed on a file with a user-mapped section open
- How to set commands output as a variable in a batch file
- HyperV is not available on Home editions
- Batch command for ImageMagick to convert all files in a directory and sub-directories on windows
- Unable to start MySQL server
- Dependency Walker: missing dlls
- Can pm2 run an ‘npm start’ script
- how to empty recyclebin through command prompt?
- nvm is not compatible with the npm config “prefix” option:
- You require permission from “Myself” to delete folder – how to fix