The new computer involved in the preparation of new project development

Installation Environment

  1. Install the desired item node version, the installation of the node will automatically download npm package management library.

  2. Install git

    1. Since git default theme colors than powershell pretty much set the default terminal so it is necessary to git (personal opinion);
    2. Replace the terminal in vscode the way:
      1. ctrl +, vscode open the Settings panel, the search box to enter shell, drop down to find the Terminal> Intergrated> Shell: Windows, git input box installation address at the bottom of this column. Installation address can be entered in black borders where git get, which is a pit, where git to get the address needs to change it to use, such as my address is: C: / \ prigran Files (x86) / \ Git / \ cmd / \ git.exe, need to be replaced: C: / \ prigran Files (x86) / \ Git / \ bin / \ bash.exe to take effect.
  3. Pull project, git clone + http address or SSH address, if not pull the project may be provided with a ssh public key question, set a public key approach other bloggers have been given, is not described herein.

  4. Implementation of npm install download project dependencies, if a network error report can be considered Taobao mirror, setting method: npm config set registry = mirror address. If you fill in the mirror network address for the project within the network.

  5. Avoid Each team member needs to download the image from the specified URL is dependent on the method of setting to add the name of the project root directory for .npmrc configuration file, and add dependencies Download project specified in the file, the file is very simple, as follows: registry = "mirror address."

  6. package-lock.json the resolved value is the address after the download configuration.

Published 18 original articles · won praise 10 · views 627

Guess you like

Origin blog.csdn.net/llq886/article/details/103368353