Front end: use npm in vscode to install dependencies and run the project

1. Download and install node

2. Confirm that the installation is complete: open cmd and enter node -v to print the version number information

open cmd input

node -v has version number information printed

npm -version has version number information printed

3. Set up npm mirroring:

open cmd input

npm config set registry https://registry.npm.taobao.org
4. After configuration, you can use the following command to verify whether it is successful:
 npm config ls
At this point: metrics‐registry = "http://registry.npm.taobao.org/" means the setting is successful
5. Final settings:
 npm config get registry
6. Open the project directory with vscode, which contains package.json, and open a new terminal
Enter npm install to automatically install dependencies
7. Run the command in the VsCode terminal window: npm run dev to run the project
8. ctrl+c to stop the project

Guess you like

Origin blog.csdn.net/Xerxes2222/article/details/128088007
Recommended