Npm install reported an error

prompt for an error when running npm install

module.js:549
    throw err;
    ^

Error: Cannot find module "update-notifier"
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js:29:19
    at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js:92:3)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)

is there any way to solve this problem

Mar.01,2021

either a spelling mistake or a network problem


do you use Taobao image in .npmrc? If so, remove the mirror image first and you can install it.


rm -rf node_modules/

delete the dependency package and try again install ?


Error: Cannot find module 'update-notifier'

isn't this a reported error? Then why don't you just find a bag?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be0100-314c5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be0100-314c5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?