Windows前端电脑环境配置
2022.05.08 Sun
  • 删除 360

  • 设置 Windows 环境变量

    在桌面快捷方式电脑或者文件管理此电脑右键选择属性,找到高级系统设置,选择最下方的环境变量,在系统变量或者用户变量的 Path 里面追加要添加的变量路径。

  • Node.js 环境配置

    Node.js 官方网址下载长期维护版,在安装过程中,Node.js 会自动将 npm 和 node 添加到环境变量中,安装完成后打开命令行测试 npm 和 node 能否被识别。
    如果没有被识别,可以找到 Node.js 安装目录,复制含有 node.exe 的文件夹路径,追加到环境变量中。
    设置 cnpm $ npm install cnpm -g --registry=https://registry.npmmirror.com

  • Git 环境配置

    Git 工具官网下载 Git 命令行工具,安装完成后打开命令行测试 git 命令是否可用。
    Git 基本命令

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    # 查看当前git配置
    git config --list
    # 设置git用户名
    git config --global user.name "Your Name"
    # 设置git账户邮箱
    git config --global user.email "abc@qq.com"
    # 设置git免密码登录
    git config --global credential.helper store
    # 删除远程分支
    git push origin --D bug-57 bug-34 bug-84
    # 删除本地分支
    git branch -D bug-57 bug-34 bug-56
    #设置git代理
    git config --global http.proxy 127.0.0.1:8087
    #取消git代理
    git config --global --unset http.proxy

    Git and GitHub
    A quick aside: git and GitHub are not the same thing. Git is an open-source, version control tool created in 2005 by developers working on the Linux operating system; GitHub is a company founded in 2008 that makes tools which integrate with git. You do not need GitHub to use git, but you cannot use GitHub without using git. There are many other alternatives to GitHub, such as GitLab, BitBucket, and “host-your-own” solutions such as gogs and gittea. All of these are referred to in git-speak as “remotes”, and all are completely optional. You do not need to use a remote to use git, but it will make sharing your code with others easier.

  • 命令行 CLI 安装 Vue

    1
    2
    3
    4
    5
    6
    7
    8
    # 安装Vue命令行
    npm install -g @vue/cli
    # 更新Vue命令行
    npm update -g @vue/cli
    # 创建一个Vue项目
    vue create hello-world
    # 打开Vue的图形管理界面
    vue ui

    vue create projtct命令里可以通过 Manually select features 手动选择项目配置,比如给项目配置 Vue 版本、路由管理 Router、状态管理 Vuex、使用 TypeScript 语言、代码格式化工具等等(使用空格键做选择)。

  • Vscode 插件

    Github Copilot、Live Server、One Dark Pro、Prettier

  • 浏览器插件

    Just a clock、SimpleUndoClose、Minimal Theme for Twitter

    油猴插件:在 Chrome 插件应用里搜索 Tampermonkey 安装。然后在Greasy Fork 或者Userscript.Zone Search网站里搜索查找需要的插件点击安装。
    插件推荐:AC-baidu-重定向优化百度、全网 VIP 视频免费破解去广告、CSDN 广告完全过滤

检测到页面内容有更新,是否刷新页面