# 配置 registry npm config set registry https://r.cnpmjs.org/ # 验证配置是否修改成功 npm config get registry
npm install
If you have a package.json file in your directory and you run npm install, then npm will look at the dependencies that are listed in that file and download the latest versions satisfying semver rules for all of those. https://docs.npmjs.com/getting-started/using-a-package.json