The inexplicable disappearance of npm dependency

the thing is, I installed a series of npm packages such as sass-loader, and it ran smoothly, but a new "xxx" package was installed later. When I run npm run build again, I will report that some modules cannot be found, such as lodash.tail shallow-clone

.

I have to manually install these modules one by one so that they can run. Even if npm install reinstalls all of them, these modules are still missing.

I"ve always encountered this problem twice. Once I installed a third-party component in vue, and as a result, a lot of modules were missing. Just wrote a simple demo, with only simple css-loader and other basic content, and then installed the npm install jquery, results of each loader began to report errors, missing a bunch.

excuse me, everyone, what"s going on here? Thank you for your attention!

Npm
Mar.05,2021

< H2 > the same question, does no one come to answer < / H2 >

I have found the problem. I updated npm and node can't keep up. Node will be solved under Synchronize update. Yours should be a similar problem

.

depending on the version of each package, you can only install the missing package manually. To avoid this, you can check npmjs.com before installation to see how many downloads this package has or how active it is to maintain. After all, there are hundreds of thousands of npm packages, but the quality is also good and bad, so try to choose some packages with high downloads and high activity.

PS: feels that if you use vue, try not to use jquery. If you want to use the recommended CDN to load jquery

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-1b3a74f-2b57a.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-1b3a74f-2b57a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?