There is an inexplicable error in the project created by vue-cli. Just delete the node_modules and download it again.

sometimes when you do a project through vue-cli, npm will report some inexplicable errors, and you can"t change it according to the online examples. finally, delete the node_modules folder and re-cnpm install for no reason. I don"t know if your predecessors have ever encountered such a situation, and what is the cause?

Mar.28,2021

Network problem may be that the package you downloaded is incomplete


package, and there are many strange holes in cnpm. It is still recommended to use npm


network. Npm accesses foreign addresses, so sometimes there will be problems such as slow download or download errors, and the network requirements are relatively high. Cnpm is a mirror image of Taobao and is deployed on domestic servers, so download speed is much better than npm. But I have also tried to encounter a pit when downloading with cnpm, so I personally prefer to download with npm when npm is available.


specify the Taobao image npm install-- registry https://registry.npm.taobao.org/

Menu