current position:Home>NPM could not use pit, NPM has been on motionless, run

NPM could not use pit, NPM has been on motionless, run

2022-11-24 22:48:44And how envious

I changed to a new computer, reinstalled nodejs, and encountered pitfalls.Just choose the latest LTS version. At first, I thought it was a version problem, but later realized that it was not a version problem, but some problems with domestic npm. All you need to do is switch to the Taobao mirror source.

  • Set Taobao Mirror
# Settingsnpm config set registry https://registry.npm.taobao.org# Viewnpm config get registry# Test whether it can be used, install a new vue project to testnpm init [email protected]
  • cmd window content
# Set Taobao mirror sourceC:\Users\FORGETnpm config set registry https://registry.npm.taobao.orgC:\Users\FORGETnpm config get registryhttps://registry.npm.taobao.org/C:\Users\FORGETcd DesktopC:\Users\FORGET\Desktop>cd MyWorkC:\Users\FORGET\Desktop\MyWorknpm init [email protected] to install the following packages:[email protected] to proceed? (y) yVue.js - The Progressive JavaScript Framework√ Project name: ... YQKSH√ Package name: ...yqksh

copyright notice
author[And how envious],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/328/202211242247016609.html

Random recommended