The problem encountered:
How does npm set the warehouse address in the vue project?
Solution:
1. View the current address:
npm config get registry
https://registry.npmjs.org/
npm config get disturl
undefined
2. Set the current address (set to Taobao mirror):
npm config set registry http://registry.npm.taobao.org/
3. Set the current address (set as the default address):
npm config set registry https://registry.npmjs.org/
3. Add -registry to specify the warehouse path before each command execution:
npm --registry https://registry.npm.taobao.org install
4. Restore the default mirror address:
npm config delete registry