I can’t tell you exactly, but since it shows that all installations were successful, it’s probably because the developers of the dependent packages have been left behind. This situation usually occurs after the dependency package is upgraded. The developer of the dependency may have added a dependency required by a certain dependency, that is, the module you installed is required to run. When developers add new dependencies, they directly execute npm install <package> without --save. So after your dependent package is upgraded, the packages required in the code are not added to the dependent package.json file. At this time, you need to install it manually. For example, currently, you need to execute the npm i mime command.
cnpm install After failure, it is recommended to delete node_modules before trying again npm install. The directory structures of the two dependencies are somewhat different
Then try npm. It’s possible that the domestic Taobao team’s packages are incomplete. This is also a guess. You can try npm install and try downloading it from a foreign server
I can’t tell you exactly, but since it shows that all installations were successful, it’s probably because the developers of the dependent packages have been left behind. This situation usually occurs after the dependency package is upgraded. The developer of the dependency may have added a dependency required by a certain dependency, that is, the module you installed is required to run. When developers add new dependencies, they directly execute npm install <package> without --save. So after your dependent package is upgraded, the packages required in the code are not added to the dependent package.json file. At this time, you need to install it manually. For example, currently, you need to execute the npm i mime command.
cnpm install
After failure, it is recommended to delete node_modules before trying againnpm install
. The directory structures of the two dependencies are somewhat differentThen try npm. It’s possible that the domestic Taobao team’s packages are incomplete. This is also a guess. You can try npm install
and try downloading it from a foreign server
Please try to use npm i or yarn, cnpm sometimes leaks packages
It is recommended to use yarn
yarn config set registry 'https://registry.npm.taobao.org'
It is recommended to use
yarn
, it is much faster.