The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
Unable to run npm update, due to an E404 on a package I've already uninstalled
I have an ionic/cordova project, and just about all my npm-dependent operations are being halted by this error
npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/google-app-indexing-cordova-android - Not found npm ERR! 404 npm ERR! 404 'google-app-indexing-cordova-android@latest' is not in the npm registry. npm ERR! 404 Your package name is not valid, because npm ERR! 404 1. name can only contain URL-friendly characters npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\skis89\AppData\Roaming\npm-cache\_logs\2019-01-28T16_01_36_479Z-debug.log
The problem here is that this plugin is not actually in my ionic project. I removed it via
ionic plugin rm, and it is no longer in my plugins folder or in my ionic fetch.json. This is a plugin I had installed a while ago, and the registry address should actually be
https://registry.npmjs.org/google-app-indexing-cordova, so I have no clue why it’s resolving to the wrong address or even trying to resolve at all.
I ran a grep through C:\Program Files\nodejs, AppData\Roaming\npm, and AppData\Roaming\npm-cache for the string “google-app-indexing-cordova-android”, which turned up no results.
How am I supposed to fix this?
Which version of npm are you using? Also, could you paste the contents of your
There was a ref in my package.json that I deleted. npm update is running now. Thanks!