View NPM registry address

npm get registry

Switch to Taobao registry address

npm config set registry http://registry.npm.taobao.org/

Switch back to the original registry address

npm config set registry https://registry.npmjs.org/

Install node and NPM

Download the node installation package from node.js official website and perform the installation

NPM has been included in the node. After the installation is completed, check whether the installation is successful by checking the version, and prompt that the output version number is successful

node -v
npm -v

Create and release packages

Create the package directory and finish NPM initialization

mkdir npm-test
cd npm-test
npm init

Speechless

This time
The mountain is no longer a mountain
The sea is not the sea either
Walking in the fog
They survived the darkness
I opened my eyes
We laugh at the poor, not the prostitutes


张大爷

Gitignore file, an official GitHub customized for visual studio project, can be submitted directly in the root directory of the project.


## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/

# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the

In the development process of Vue, there are sometimes problems of loading different routes according to the permissions of different people. After some tests, a solution is found, such as:

  1. Create a new config.json file in the router folder as the router's data source
[
  {
    "title": "Dashboard",
    "path": "/main/",
    "src": "dashboard",
    "summary": "statistics, charts, recent events and reports",
    "children": []
  },
  {
    "title": "Menu Example",
    "heading": true
  },
  {
    "title": "Multi Level Menu",
    "summary": "",
    "children": [
      {
        "title": "Item 1",
        "summary": "",
        "children": [
          {
            "title": "Item 11",
            "summary": "",
            "path": "/main/1",
            "children": []
          },
          {
            "title": "Item 12",
            "summary": "",
            "path": "/main/1",
            "children": []
          },
          {
            "title": "Item 13",
            "summary": "",
            "path": "/main/1",
            "children": []
          }
        ]
      },
      {
        "title": "Item 2",
        "summary": "",
        "path": "/main/1",
        "children": []
      },
      {
        "title": "Item 3",
        "summary": "",
        "path": "/main/1",
        "children": []
      }
    ]
  }